Edit

Share via


ApplicationDataStorageHelper.Read Method

Definition

Overloads

Read<T>(String, T)

Retrieves a single item by its key.

Read<T>(String, String, T)

Retrieves a single item by its key in composite.

Read<T>(String, T)

Retrieves a single item by its key.

public T? Read<T> (string key, T? default = default);
member this.Read : string * 'T -> 'T
Public Function Read(Of T) (key As String, Optional default As T = Nothing) As T

Type Parameters

T

Type of object retrieved.

Parameters

key
String

Key of the object.

default
T

Default value of the object.

Returns

T

The TValue object.

Applies to

Read<T>(String, String, T)

Retrieves a single item by its key in composite.

public T? Read<T> (string compositeKey, string key, T? default = default);
member this.Read : string * string * 'T -> 'T
Public Function Read(Of T) (compositeKey As String, key As String, Optional default As T = Nothing) As T

Type Parameters

T

Type of object retrieved.

Parameters

compositeKey
String

Key of the composite (that contains settings).

key
String

Key of the object.

default
T

Default value of the object.

Returns

T

The T object.

Applies to