StorageFileHelper.ReadBytesFromLocalCacheFileAsync(String) Method

Definition

Gets an array of bytes from a Windows.Storage.StorageFile located in the application local cache folder.

public static System.Threading.Tasks.Task<byte[]> ReadBytesFromLocalCacheFileAsync (string fileName);
static member ReadBytesFromLocalCacheFileAsync : string -> System.Threading.Tasks.Task<byte[]>
Public Function ReadBytesFromLocalCacheFileAsync (fileName As String) As Task(Of Byte())

Parameters

fileName
String

The relative String file path.

Returns

Task<Byte[]>

The stored Byte array.

Exceptions

Exception thrown if the fileName is null or empty.

Applies to