ApplicationDataStorageHelper.Read 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.
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
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
The T object.