FormUrlEncodedContent Class

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

A container for name/value tuples encoded using application/x-www-form-urlencoded MIME type.

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

System.Object
  System.Net.Http.HttpContent
    System.Net.Http.ByteArrayContent
      System.Net.Http.FormUrlEncodedContent

public class FormUrlEncodedContent : ByteArrayContent

NameDescription
System_CAPS_pubmethodFormUrlEncodedContent(IEnumerable<KeyValuePair<String, String>>)

Initializes a new instance of the FormUrlEncodedContent class with a specific collection of name/value pairs.

NameDescription
System_CAPS_pubpropertyHeaders

Gets the HTTP content headers as defined in RFC 2616.(Inherited from HttpContent.)

NameDescription
System_CAPS_pubmethodCopyToAsync(Stream)

Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.(Inherited from HttpContent.)

System_CAPS_pubmethodCopyToAsync(Stream, TransportContext)

Serialize the HTTP content into a stream of bytes and copies it to the stream object provided as the stream parameter.(Inherited from HttpContent.)

System_CAPS_protmethodCreateContentReadStreamAsync()

Creates an HTTP content stream as an asynchronous operation for reading whose backing store is memory from the ByteArrayContent.(Inherited from ByteArrayContent.)

System_CAPS_pubmethodDispose()

Releases the unmanaged resources and disposes of the managed resources used by the HttpContent.(Inherited from HttpContent.)

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the HttpContent and optionally disposes of the managed resources.(Inherited from HttpContent.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodLoadIntoBufferAsync()

Serialize the HTTP content to a memory buffer as an asynchronous operation.(Inherited from HttpContent.)

System_CAPS_pubmethodLoadIntoBufferAsync(Int64)

Serialize the HTTP content to a memory buffer as an asynchronous operation.(Inherited from HttpContent.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodReadAsByteArrayAsync()

Serialize the HTTP content to a byte array as an asynchronous operation.(Inherited from HttpContent.)

System_CAPS_pubmethodReadAsStreamAsync()

Serialize the HTTP content and return a stream that represents the content as an asynchronous operation. (Inherited from HttpContent.)

System_CAPS_pubmethodReadAsStringAsync()

Serialize the HTTP content to a string as an asynchronous operation.(Inherited from HttpContent.)

System_CAPS_protmethodSerializeToStreamAsync(Stream, TransportContext)

Serialize and write the byte array provided in the constructor to an HTTP content stream as an asynchronous operation.(Inherited from ByteArrayContent.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_protmethodTryComputeLength(Int64)

Determines whether a byte array has a valid length in bytes.(Inherited from ByteArrayContent.)

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.5
Portable Class Library
Supported in: portable .NET platforms
Windows Phone
Available since 8.1

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: