ISettingsStorageHelper<TKey>.TryRead<TValue>(TKey, TValue) 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.
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.