StorageFile.CreateStreamedFileFromUriAsync(String, Uri, IRandomAccessStreamReference) StorageFile.CreateStreamedFileFromUriAsync(String, Uri, IRandomAccessStreamReference) StorageFile.CreateStreamedFileFromUriAsync(String, Uri, IRandomAccessStreamReference) StorageFile.CreateStreamedFileFromUriAsync(String, Uri, IRandomAccessStreamReference) StorageFile.CreateStreamedFileFromUriAsync(String, Uri, IRandomAccessStreamReference) Method

Definition

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.

public : static IAsyncOperation<StorageFile> CreateStreamedFileFromUriAsync(Platform::String displayNameWithExtension, Uri uri, IRandomAccessStreamReference thumbnail)
static IAsyncOperation<StorageFile> CreateStreamedFileFromUriAsync(winrt::hstring displayNameWithExtension, Uri uri, IRandomAccessStreamReference thumbnail) const;
public static IAsyncOperation<StorageFile> CreateStreamedFileFromUriAsync(String displayNameWithExtension, Uri uri, IRandomAccessStreamReference thumbnail)
Public Shared Function CreateStreamedFileFromUriAsync(displayNameWithExtension As String, uri As Uri, thumbnail As IRandomAccessStreamReference) As IAsyncOperation(Of StorageFile)
Windows.Storage.StorageFile.createStreamedFileFromUriAsync(displayNameWithExtension, uri, thumbnail).done( /* Your success and error handlers */ );

Parameters

displayNameWithExtension
String String String

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

uri
Uri Uri Uri

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

thumbnail
IRandomAccessStreamReference IRandomAccessStreamReference IRandomAccessStreamReference

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.