Share via


ISettingValue.Value<T> Method

Definition

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

T

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.

Applies to