ISettingValue.Value<T> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the value converted to the type T
.
public T Value<T> ();
abstract member Value : unit -> 'T
Public Function Value(Of T) () As T
Type Parameters
- T
The expected type of the setting, only valid types for Setting<T> are supported.
Returns
The value converted to the type T
.
Exceptions
If T
is not a supported type of Setting<T>.
The conversion of the value to T
is not supported.
The value is not in a format recognized by InvariantCulture
for T
.
The value represents a number that is out of the range of T
.
An error occurred when retrieving the setting value. This exception is only raised when
Error is not null
.