WebClient.DownloadDataAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
DownloadDataAsync(String, Object)
Begins asynchronous DownloadData operation. Downloads data from provided URI.
Declaration
public Task<byte[]> DownloadDataAsync(string uri, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | URI to retrieve data from. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Byte[]> | Byte array that contains data retrieved from provided URI. |
Remarks
HTTP method GET is used to retrieve the data.
DownloadDataAsync(Uri, Object)
Begins asynchronous DownloadData operation. Downloads data from provided URI.
Declaration
public Task<byte[]> DownloadDataAsync(Uri uri, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | URI to retrieve data from. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Byte[]> | Byte array that contains data retrieved from provided URI. |
Remarks
HTTP method GET is used to retrieve the data.