Share via


FileSystem.OpenAppPackageFileAsync(String) Method

Definition

Opens a stream to a file contained within the app package.

public:
 static System::Threading::Tasks::Task<System::IO::Stream ^> ^ OpenAppPackageFileAsync(System::String ^ filename);
public static System.Threading.Tasks.Task<System.IO.Stream> OpenAppPackageFileAsync (string filename);
static member OpenAppPackageFileAsync : string -> System.Threading.Tasks.Task<System.IO.Stream>
Public Shared Function OpenAppPackageFileAsync (filename As String) As Task(Of Stream)

Parameters

filename
String

The name of the file (excluding the path) to load from the app package.

Returns

A Stream containing the (read-only) file data.

Applies to