Edit

Share via


StreamHelper.GetLocalCacheFileStreamAsync(String, FileAccessMode) Method

Definition

Gets a stream to a specified file from the application local cache folder.

public static System.Threading.Tasks.Task<Windows.Storage.Streams.IRandomAccessStream> GetLocalCacheFileStreamAsync (string fileName, Windows.Storage.FileAccessMode accessMode = Windows.Storage.FileAccessMode.Read);
static member GetLocalCacheFileStreamAsync : string * Windows.Storage.FileAccessMode -> System.Threading.Tasks.Task<Windows.Storage.Streams.IRandomAccessStream>
Public Function GetLocalCacheFileStreamAsync (fileName As String, Optional accessMode As FileAccessMode = Windows.Storage.FileAccessMode.Read) As Task(Of IRandomAccessStream)

Parameters

fileName
String

Relative name of the file to open. Can contain subfolders.

accessMode
Windows.Storage.FileAccessMode

File access mode. Default is read.

Returns

Task<Windows.Storage.Streams.IRandomAccessStream>

The file stream

Applies to