BackgroundDownloader.CreateDownload(Uri, IStorageFile, IStorageFile) | createDownload(Uri, IStorageFile, IStorageFile) method
Initializes a DownloadOperation object with the resource Uri, the file that the response is written to, and the request entity body.
Syntax
var downloadOperation = backgroundDownloader.createDownload(uri, resultFile, requestBodyFile);
Parameters
- uri
-
Type: Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]
The location of the resource.
- resultFile
-
Type: IStorageFile
The file that the response will be written to.
- requestBodyFile
-
Type: IStorageFile
A file that represents the request entity body, which contains additional data the server requires before the download can begin. The file this object points to must be valid for the duration of the download.
Return value
Type: DownloadOperation
The resultant download operation.
Remarks
The resultant DownloadOperation supports scenarios where a valid download request contains specific data required by the server. For example, a website requires a filled out form before the download can take place.
Requirements
|
Minimum supported client | Windows 8 |
|---|---|
|
Minimum supported server | Windows Server 2012 |
|
Namespace |
|
|
Metadata |
|
See also
Build date: 12/4/2012
