ISettingsReader.GetArrayOrThrow<T>(String) 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 an array setting. If there is no persisted value, the persisted value is invalid,
or the persisted value can't be converted to an array of T
, returns the default value.
public System.Collections.Generic.IReadOnlyList<T> GetArrayOrThrow<T> (string moniker);
abstract member GetArrayOrThrow : string -> System.Collections.Generic.IReadOnlyList<'T>
Public Function GetArrayOrThrow(Of T) (moniker As String) As IReadOnlyList(Of T)
Type Parameters
- T
Parameters
- moniker
- String
Returns
Exceptions
Thrown if T
isn't compatible with the persisted value or the default value.
Thrown if the setting isn't registered and there's no persisted value.
Thrown if moniker
is null.
Thrown if moniker
is empty.