Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

WebClient.UploadStringAsync Method

Namespace: Rebex.Net
Assembly: Rebex.Http.dll (version 7.0.9147)

UploadStringAsync(String, String, Object)

Begins asynchronous UploadString operation. 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 optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Response of the upload operation.

UploadStringAsync(Uri, String, Object)

Begins asynchronous UploadString operation. 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 optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Response of the upload operation.

UploadStringAsync(String, String, String, Object)

Begins asynchronous UploadString operation. 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 optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Response of the upload operation.

UploadStringAsync(Uri, String, String, Object)

Begins asynchronous UploadString operation. 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 optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<String>

Response of the upload operation.

In This Article
  • UploadStringAsync(String, String, Object)
  • UploadStringAsync(Uri, String, Object)
  • UploadStringAsync(String, String, String, Object)
  • UploadStringAsync(Uri, String, String, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies