Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.49 KB

storagefile_getfilefromapplicationuriasync_1702427701.md

File metadata and controls

32 lines (24 loc) · 1.49 KB
-api-id -api-type
M:Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(Windows.Foundation.Uri)
winrt method

Windows.Storage.StorageFile.GetFileFromApplicationUriAsync

-description

Gets a StorageFile object to represent the specified Uniform Resource Identifier (URI) app resource. For examples of sample URIs see Load images and assets tailored for scale, theme, high contrast, and others.

-parameters

-param uri

The Uniform Resource Identifier (URI) of the app resource to get a StorageFile to represent.

-returns

When this method completes, it returns a StorageFile object that represents the Uniform Resource Identifier (URI) resource.

-remarks

You can use this method to access your app's resources using either "ms-appx://" or "ms-appdata://" Uniform Resource Identifier (URI).

-examples

var uri = new Windows.Foundation.Uri("ms-appx:///datafile.xml")
Windows.Storage.StorageFile.getFileFromApplicationUriAsync(uri).done( /* Your success and error handlers */ );

-see-also

Load images and assets tailored for scale, theme, high contrast, and others