Skip to content

INavigationParameter.GetValue(string, T) method

Defined in

Type: INavigationParameter Namespace: Sextant Assembly: Sextant.dll

Applies to

net11.0, net10.0

T GetValue<T>(string key, T defaultValue)

Summary: Returns the parameter value, or the supplied fallback when the key is absent.

Type parameters

NameDescription
TThe view model or parameter value type.

Parameters

NameTypeDescription
keystring (opens in a new tab)The navigation parameter key.
defaultValueTThe fallback returned when the key is absent.

Returns: T -- The typed parameter value or the fallback.