WebClient.DownloadFileAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
DownloadFileAsync(String, String, Object)
Begins asynchronous DownloadFile operation. 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 optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
HTTP method GET is used to retrieve the data.
DownloadFileAsync(Uri, String, Object)
Begins asynchronous DownloadFile operation. 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 optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Remarks
HTTP method GET is used to retrieve the data.