WebClient.UploadValuesAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9119)
UploadValuesAsync(String, NameValueCollection, Object)
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI.
Declaration
public Task<byte[]> UploadValuesAsync(string uri, NameValueCollection values, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | Uri to send data to. |
NameValueCollection | values | Name/value collection to send. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Byte[]> | Response data of the upload operation. |
UploadValuesAsync(Uri, NameValueCollection, Object)
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI.
Declaration
public Task<byte[]> UploadValuesAsync(Uri uri, NameValueCollection values, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri to send data to. |
NameValueCollection | values | Name/value collection to send. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Byte[]> | Response data of the upload operation. |
UploadValuesAsync(String, String, NameValueCollection, Object)
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI.
Declaration
public Task<byte[]> UploadValuesAsync(string uri, string method, NameValueCollection values, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | uri | Uri to send data to. |
String | method | HTTP method to use when sending the data. |
NameValueCollection | values | Name/value collection to send. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Byte[]> | Response data of the upload operation. |
UploadValuesAsync(Uri, String, NameValueCollection, Object)
Begins asynchronous UploadValues operation. Uploads a name/value collection to a specified URI.
Declaration
public Task<byte[]> UploadValuesAsync(Uri uri, string method, NameValueCollection values, object state = null)
Parameters
Type | Name | Description |
---|---|---|
Uri | uri | Uri to send data to. |
String | method | HTTP method to use when sending the data. |
NameValueCollection | values | Name/value collection to send. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<Byte[]> | Response data of the upload operation. |