WebClient.UploadStringAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 8.0.9673)
UploadStringAsync(String, String, Object)
Uploads a string to provided URI as a new resource.
Declaration
public Task<string> UploadStringAsync(string uri, string data, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | uri | Uri to send resource to. |
| String | data | String containing new resource. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task<String> | Response of the upload operation. |
Remarks
HTTP method POST is used.
UploadStringAsync(Uri, String, Object)
Uploads a string to provided URI as a new resource.
Declaration
public Task<string> UploadStringAsync(Uri uri, string data, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | Uri to send resource to. |
| String | data | String containing new resource. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task<String> | Response of the upload operation. |
UploadStringAsync(String, String, String, Object)
Uploads a string to provided URI as a new resource.
Declaration
public Task<string> UploadStringAsync(string uri, string method, string data, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| String | uri | Uri to send resource to. |
| String | method | HTTP method to use when sending the data. |
| String | data | String containing new resource. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task<String> | Response of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).
UploadStringAsync(Uri, String, String, Object)
Uploads a string to provided URI as a new resource.
Declaration
public Task<string> UploadStringAsync(Uri uri, string method, string data, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | uri | Uri to send resource to. |
| String | method | HTTP method to use when sending the data. |
| String | data | String containing new resource. |
| Object | state | An object containing state information for this request. |
Returns
| Type | Description |
|---|---|
| Task<String> | Response of the upload operation. |
Remarks
HTTP method POST is used when method is set to null (Nothing in VB).