StorageFile.CreateStreamedFileFromUriAsync 메서드

정의

지정된 URI(Uniform Resource Identifier) 리소스의 데이터 스트림을 나타내는 StorageFile 을 만듭니다. 이 메서드를 사용하면 스트림을 나타내는 StorageFile 에 처음 액세스할 때 앱이 주문형 데이터를 다운로드할 수 있습니다.

public:
 static IAsyncOperation<StorageFile ^> ^ CreateStreamedFileFromUriAsync(Platform::String ^ displayNameWithExtension, Uri ^ uri, IRandomAccessStreamReference ^ thumbnail);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageFile> CreateStreamedFileFromUriAsync(winrt::hstring const& displayNameWithExtension, Uri const& uri, IRandomAccessStreamReference const& thumbnail);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageFile> CreateStreamedFileFromUriAsync(string displayNameWithExtension, System.Uri uri, IRandomAccessStreamReference thumbnail);
function createStreamedFileFromUriAsync(displayNameWithExtension, uri, thumbnail)
Public Shared Function CreateStreamedFileFromUriAsync (displayNameWithExtension As String, uri As Uri, thumbnail As IRandomAccessStreamReference) As IAsyncOperation(Of StorageFile)

매개 변수

displayNameWithExtension
String

Platform::String

winrt::hstring

파일 형식 확장명을 포함하여 만들 StorageFile 의 사용자에게 친숙한 이름입니다.

uri
Uri Uri

StorageFile을 만드는 데 사용되는 리소스의 URI(Uniform Resource Identifier)입니다.

thumbnail
IRandomAccessStreamReference

만들 StorageFile 의 썸네일 이미지입니다.

고품질 썸네일의 경우 이 썸네일의 한 가장자리는 1024픽셀 이상이어야 합니다.

반환

이 메서드가 완료되면 URI(Uniform Resource Identifier) 리소스를 나타내는 StorageFile 개체를 반환합니다.

특성

설명

이 메서드는 CreateStreamedFileAsync와 거의 동일합니다. 이 메서드를 사용하는 경우를 제외하고 시스템은 앱을 대신하여 StreamedFileDataRequestedHandler 를 제공하고 이 함수를 구현하여 지정된 Uri 를 스트리밍된 파일에 다운로드합니다.

적용 대상