FormUrlEncodedContent Class

FormUrlEncodedContent class

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

public class FormUrlEncodedContent : ByteArrayContent

Constructors

NameDescription
FormUrlEncodedContent(IEnumerable<KeyValuePair<string, string>>)

Properties

NameDescription
Headers { get; }Gets the HTTP content headers.

Methods

NameDescription
Dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ReadAsByteArray()Serialize the HTTP content and return a byte array that represents the content.
ReadAsStream()Serialize the HTTP content and return a stream that represents the content.
ReadAsString()Serialize the HTTP content and return a string that represents the content.

See Also