Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.79 KB

storagefile_createstreamedfilefromuriasync_983266077.md

File metadata and controls

35 lines (24 loc) · 1.79 KB
-api-id -api-type
M:Windows.Storage.StorageFile.CreateStreamedFileFromUriAsync(System.String,Windows.Foundation.Uri,Windows.Storage.Streams.IRandomAccessStreamReference)
winrt method

Windows.Storage.StorageFile.CreateStreamedFileFromUriAsync

-description

Creates a StorageFile to represent a stream of data from the specified Uniform Resource Identifier (URI) resource. This method lets the app download the data on-demand when the StorageFile that represents the stream is first accessed.

-parameters

-param displayNameWithExtension

The user-friendly name of the StorageFile to create, including a file type extension.

-param uri

The Uniform Resource Identifier (URI) of the resource used to create the StorageFile.

-param thumbnail

The thumbnail image for the StorageFile to create.

For a high-quality thumbnail, one edge of this thumbnail should be at least 1024 pixels.

-returns

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

-remarks

This method is nearly equivalent to CreateStreamedFileAsync, except when using this method, the system provides a StreamedFileDataRequestedHandler on the app's behalf and implements this function to download the specified Uri into the streamed file.

-examples

-see-also