Jaa


HttpFormUrlEncodedContent Class

Definition

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

public ref class HttpFormUrlEncodedContent sealed : IClosable, IStringable, IHttpContent
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.IHttpFormUrlEncodedContentFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class HttpFormUrlEncodedContent final : IClosable, IStringable, IHttpContent
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.IHttpFormUrlEncodedContentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpFormUrlEncodedContent final : IClosable, IStringable, IHttpContent
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.IHttpFormUrlEncodedContentFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class HttpFormUrlEncodedContent : System.IDisposable, IStringable, IHttpContent
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.IHttpFormUrlEncodedContentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpFormUrlEncodedContent : System.IDisposable, IStringable, IHttpContent
function HttpFormUrlEncodedContent(content)
Public NotInheritable Class HttpFormUrlEncodedContent
Implements IDisposable, IHttpContent, IStringable
Inheritance
Object Platform::Object IInspectable HttpFormUrlEncodedContent
Attributes
Implements

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Constructors

HttpFormUrlEncodedContent(IIterable<KeyValuePair<String,String>>)

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

Properties

Headers

Get a collection of content headers set on the HttpFormUrlEncodedContent.

Methods

BufferAllAsync()

Serialize the HttpFormUrlEncodedContent into memory as an asynchronous operation.

Close()

Closes the HttpFormUrlEncodedContent instance and releases allocated resources.

Dispose()

Performs application-defined 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(UInt64)

Computes the HttpFormUrlEncodedContent length in bytes.

WriteToStreamAsync(IOutputStream)

Write the HttpFormUrlEncodedContent to an output stream as an asynchronous operation.

Applies to

See also