Edit

Share via


ISettingsStorageHelper<TKey>.TryRead<TValue>(TKey, TValue) Method

Definition

Retrieves a single item by its key.

public bool TryRead<TValue>(TKey key, out TValue? value);
abstract member TryRead : 'Key * 'Value -> bool
Public Function TryRead(Of TValue) (key As TKey, ByRef value As TValue) As Boolean

Type Parameters

TValue

Type of object retrieved.

Parameters

key
TKey

Key of the object.

value
TValue

The <see typeparamref="TValue"></see> object for <see typeparamref="TKey"></see> key.

Returns

A boolean indicator of success.

Applies to