Edit

Share via


ApplicationDataStorageHelper.ReadCacheFileAsync<T>(String, T) Method

Definition

Retrieves an object from a file in the LocalCacheFolder.

public System.Threading.Tasks.Task<T> ReadCacheFileAsync<T> (string filePath, T default = default);
member this.ReadCacheFileAsync : string * 'T -> System.Threading.Tasks.Task<'T>
Public Function ReadCacheFileAsync(Of T) (filePath As String, Optional default As T = Nothing) As Task(Of T)

Type Parameters

T

Type of object retrieved.

Parameters

filePath
String

Path to the file that contains the object.

default
T

Default value of the object.

Returns

Task<T>

Waiting task until completion with the object in the file.

Applies to