HttpContentFormDataExtensions.ReadAsFormDataAsync Method

 

Namespace:   System.Net.Http
Assembly:  System.Net.Http.Formatting (in System.Net.Http.Formatting.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticReadAsFormDataAsync(HttpContent)

Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.

System_CAPS_pubmethodSystem_CAPS_staticReadAsFormDataAsync(HttpContent, CancellationToken)

Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.

Return to top

HttpContentFormDataExtensions.ReadAsFormDataAsync Method (HttpContent)

Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.

public static Task<NameValueCollection> ReadAsFormDataAsync(
	this HttpContent content
)

Parameters

content
Type: System.Net.Http.HttpContent

The content.

Return Value

Type: System.Threading.Tasks.Task<NameValueCollection>

A task object representing the asynchronous operation.

Return to top

HttpContentFormDataExtensions.ReadAsFormDataAsync Method (HttpContent, CancellationToken)

Asynchronously reads HTML form URL-encoded from an HttpContent instance and stores the results in a NameValueCollection object.

public static Task<NameValueCollection> ReadAsFormDataAsync(
	this HttpContent content,
	CancellationToken cancellationToken
)

Parameters

content
Type: System.Net.Http.HttpContent

The content.

cancellationToken
Type: System.Threading.CancellationToken

The token to cancel the operation.

Return Value

Type: System.Threading.Tasks.Task<NameValueCollection>

A task object representing the asynchronous operation.

Return to top
Show: