NavigationRouteValues class

Namespace Runic.Navigation in Runic.Navigation 0.23.0

public sealed class NavigationRouteValues

The parameter values of a route: Int32, Int64, String, Guid and Boolean values by parameter name, compared without regard to case.

Constructors

NavigationRouteValues

public NavigationRouteValues()

No documentation.

Properties

Count

public int Count { get; }

Gets the number of parameters.

this[]

public object this[string name] { get; }

Gets a parameter's value.

Exceptions

KeyNotFoundException

There is no such parameter.

Names

public IReadOnlyCollection<string> Names { get; }

Gets the parameter names.

Methods

GetBoolean

public bool GetBoolean(string name)

Gets a Boolean parameter.

GetGuid

public Guid GetGuid(string name)

Gets a Guid parameter.

GetInt32

public int GetInt32(string name)

Gets an Int32 parameter.

Exceptions

KeyNotFoundException

There is no such parameter.

InvalidCastException

The parameter has another type.

GetInt64

public long GetInt64(string name)

Gets a Int64 parameter.

GetString

public string GetString(string name)

Gets a String parameter.

Set

public NavigationRouteValues Set(string name, int value)

Sets an Int32 parameter and returns these values.

Set

public NavigationRouteValues Set(string name, long value)

Sets a Int64 parameter and returns these values.

Set

public NavigationRouteValues Set(string name, string value)

Sets a String parameter and returns these values.

Set

public NavigationRouteValues Set(string name, Guid value)

Sets a Guid parameter and returns these values.

Set

public NavigationRouteValues Set(string name, bool value)

Sets a Boolean parameter and returns these values.

TryGetValue

public bool TryGetValue(string name, out object value)

Gets a parameter's value, or returns false when there is no such parameter.