Click or drag to resize
WebClientUploadStringTaskAsync Method (Uri, String, String)
Uploads the specified string to the specified resource as an asynchronous operation using a task object.

Namespace: System.Net
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
public Task<string> UploadStringTaskAsync(
	Uri address,
	string method,
	string data
)

Parameters

address
Type: SystemUri
The URI of the resource to receive the string. For HTTP resources, this URI must identify a resource that can accept a request sent with the POST method, such as a script or ASP page.
method
Type: SystemString
The HTTP method used to send the file to the resource. If null, the default is POST for http and STOR for ftp.
data
Type: SystemString
The string to be uploaded.

Return Value

Type: TaskString
Returns TaskTResult. The task object representing the asynchronous operation. The Result property on the task object returns a String containing the response sent by the server.
See Also