 | LegacyApplicationSettingsServiceHandlerGetT Method (String, T) |
Gets the value associated with the specified key.
Namespace: Cimbalino.Toolkit.ServicesAssembly: Cimbalino.Toolkit.Core (in Cimbalino.Toolkit.Core.dll) Version: 2.2.1.0 (2.2.1.0)
Syntaxpublic virtual T Get<T>(
string key,
T defaultValue
)
Parameters
- key
- Type: SystemString
The key whose value to get. - defaultValue
- Type: T
The default value to return if the key does not exist.
Type Parameters
- T
- The type of value to get.
Return Value
Type:
TThe value associated with the specified key, if the key is found; otherwise, the specified default value.
Implements
IApplicationSettingsServiceHandlerGetT(String, T)
Version InformationWindows
Supported in: 10.0
Windows Phone
Supported in: 8.1
Windows Phone Silverlight
Supported in: 8.1, 8.0
See Also