WebClient.DownloadFileAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 8.0.9673)
DownloadFileAsync(String, String, Object)
Downloads data from provided URI and save them to the file.
Declaration
public Task DownloadFileAsync(string uri, string filePath, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | uri | URI to retrieve data from. |
| String | filePath | Path to a file where to store retrieved data. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
HTTP method GET is used to retrieve the data.
DownloadFileAsync(Uri, String, Object)
Downloads data from provided URI and save them to the file.
Declaration
public Task DownloadFileAsync(Uri uri, string filePath, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | URI to retrieve data from. |
| String | filePath | Path to a file where to store retrieved data. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
HTTP method GET is used to retrieve the data.