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.

HttpFormUrlEncodedContent class

Applies to Windows and Windows Phone

Provides HTTP content that uses name/value data encoded with the application/x-www-form-urlencoded MIME type.

Syntax


var httpFormUrlEncodedContent = new Windows.Web.Http.HttpFormUrlEncodedContent();

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Threading(Both)]
[Version(0x06030000)]

Members

The HttpFormUrlEncodedContent class has these types of members:

Constructors

The HttpFormUrlEncodedContent class has these constructors.

ConstructorDescription
HttpFormUrlEncodedContent Initializes a new instance of the HttpFormUrlEncodedContent class with the specified content.

 

Methods

The HttpFormUrlEncodedContent class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
BufferAllAsync Serialize the HttpFormUrlEncodedContent into memory as an asynchronous operation.
Close [C++, JavaScript]Closes the HttpFormUrlEncodedContent instance and releases allocated resources.
Dispose [C#, VB]Performs tasks associated with freeing, releasing, or resetting unmanaged resources.
ReadAsBufferAsync Serialize the HttpFormUrlEncodedContent to a buffer as an asynchronous operation.
ReadAsInputStreamAsync Serialize the HttpFormUrlEncodedContent and return an input stream that represents the content as an asynchronous operation.
ReadAsStringAsync Serialize the HttpFormUrlEncodedContent to a String as an asynchronous operation.
ToString Returns a string that represents the current HttpFormUrlEncodedContent object.
TryComputeLength Computes the HttpFormUrlEncodedContent length in bytes.
WriteToStreamAsync Write the HttpFormUrlEncodedContent to an output stream as an asynchronous operation.

 

Properties

The HttpFormUrlEncodedContent class has these properties.

PropertyAccess typeDescription

Headers

Read-onlyGet a collection of content headers set on the HttpFormUrlEncodedContent.

 

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Web.Http
Windows::Web::Http [C++]

Metadata

Windows.winmd

See also

IClosable
IHttpContent
IStringable
Object

 

 

Show:
© 2014 Microsoft