StorageFile.ReplaceWithStreamedFileFromUriAsync 메서드

정의

지정된 IStorageFile 개체에서 참조하는 파일의 내용을 지정된 URI(Uniform Resource Identifier)의 새 데이터 스트림으로 바꿉니다. 이 메서드를 사용하면 스트림을 나타내는 StorageFile 에 처음 액세스할 때 앱에서 주문형 데이터를 다운로드할 수 있습니다.

데이터 스트림은 반환되는 StorageFile 을 통해 액세스되고 StorageFile 에 처음 액세스할 때 요청 시 데이터가 다운로드됩니다.

지정된 파일을 나타내는 IStorageFile 개체를 지정된 URI(Uniform Resource Identifier)의 스트림을 제공하는 새 StorageFile 로 바꿉니다.

public:
 static IAsyncOperation<StorageFile ^> ^ ReplaceWithStreamedFileFromUriAsync(IStorageFile ^ fileToReplace, Uri ^ uri, IRandomAccessStreamReference ^ thumbnail);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<StorageFile> ReplaceWithStreamedFileFromUriAsync(IStorageFile const& fileToReplace, Uri const& uri, IRandomAccessStreamReference const& thumbnail);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<StorageFile> ReplaceWithStreamedFileFromUriAsync(IStorageFile fileToReplace, System.Uri uri, IRandomAccessStreamReference thumbnail);
function replaceWithStreamedFileFromUriAsync(fileToReplace, uri, thumbnail)
Public Shared Function ReplaceWithStreamedFileFromUriAsync (fileToReplace As IStorageFile, uri As Uri, thumbnail As IRandomAccessStreamReference) As IAsyncOperation(Of StorageFile)

매개 변수

fileToReplace
IStorageFile

만든 StorageFile 에서 스트림을 제공할 파일입니다.

uri
Uri Uri

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

thumbnail
IRandomAccessStreamReference

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

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

반환

이 메서드가 완료되면 스트리밍된 파일을 나타내는 StorageFile 개체를 반환합니다. 그 후 이 StorageFile 개체를 사용하여 바꿀 파일( IStorageFile 형식) 대신 파일 콘텐츠에 액세스해야 합니다.

특성

적용 대상