StreamHelper.GetHttpStreamToStorageFileAsync(Uri, StorageFile) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.