WebClient.DownloadDataAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 8.0.9673)
DownloadDataAsync(String, Object)
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 object containing state information for this request. |
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)
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 object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task<Byte[]> | Byte array that contains data retrieved from provided URI. |
Remarks
HTTP method GET is used to retrieve the data.