Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
[ExtensionAttribute]
static Task<NameValueCollection^>^ ReadAsFormDataAsync(
	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:
[ExtensionAttribute]
static Task<NameValueCollection^>^ ReadAsFormDataAsync(
	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: