Edit

Share via


StreamHelper.GetHttpStreamToStorageFileAsync(Uri, StorageFile) Method

Definition

Gets the response stream returned by a HTTP get request and save it to a local file.

public static System.Threading.Tasks.Task GetHttpStreamToStorageFileAsync (this Uri uri, Windows.Storage.StorageFile targetFile);
static member GetHttpStreamToStorageFileAsync : Uri * Windows.Storage.StorageFile -> System.Threading.Tasks.Task
<Extension()>
Public Function GetHttpStreamToStorageFileAsync (uri As Uri, targetFile As StorageFile) As Task

Parameters

uri
Uri

Uri to request.

targetFile
Windows.Storage.StorageFile

StorageFile to save the stream to.

Returns

A Task representing the asynchronous operation.

Applies to