Edit

Share via


ApplicationDataStorageHelper.TryRead Method

Definition

Overloads

TryRead<T>(String, T)
TryRead<T>(String, String, T)

Attempts to retrieve a single item by its key in composite.

TryRead<T>(String, T)

public bool TryRead<T> (string key, out T? value);
abstract member TryRead : string * 'T -> bool
override this.TryRead : string * 'T -> bool
Public Function TryRead(Of T) (key As String, ByRef value As T) As Boolean

Type Parameters

T

Parameters

key
String
value
T

Returns

Applies to

TryRead<T>(String, String, T)

Attempts to retrieve a single item by its key in composite.

public bool TryRead<T> (string compositeKey, string key, out T? value);
member this.TryRead : string * string * 'T -> bool
Public Function TryRead(Of T) (compositeKey As String, key As String, ByRef value As T) As Boolean

Type Parameters

T

Type of object retrieved.

Parameters

compositeKey
String

Key of the composite (that contains settings).

key
String

Key of the object.

value
T

The value of the object retrieved.

Returns

The T object.

Applies to