ApplicationDataStorageHelper.ReadCacheFileAsync<T>(String, T) 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 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.