StreamHelper.GetLocalCacheFileStreamAsync(String, FileAccessMode) 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.
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