HttpFormUrlEncodedContent Classe

Definizione

Fornisce contenuto HTTP che usa i dati name/value codificati con il tipo MIME application/x-www-form-urlencoded MIME.

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
Ereditarietà
Object Platform::Object IInspectable HttpFormUrlEncodedContent
Attributi
Implementazioni

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Costruttori

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

Inizializza una nuova istanza della classe HttpFormUrlEncodedContent con il contenuto specificato.

Proprietà

Headers

Ottenere una raccolta di intestazioni di contenuto impostate in HttpFormUrlEncodedContent.

Metodi

BufferAllAsync()

Serializzare httpFormUrlEncodedContent in memoria come operazione asincrona.

Close()

Chiude l'istanza httpFormUrlEncodedContent e rilascia le risorse allocate.

Dispose()

Esegue attività definite dall'applicazione, come rilasciare o reimpostare risorse non gestite.

ReadAsBufferAsync()

Serializzare httpFormUrlEncodedContent in un buffer come operazione asincrona.

ReadAsInputStreamAsync()

Serializzare httpFormUrlEncodedContent e restituire un flusso di input che rappresenta il contenuto come operazione asincrona.

ReadAsStringAsync()

Serializzare httpFormUrlEncodedContentin un'operazione asincrona.

ToString()

Restituisce una stringa che rappresenta l'oggetto HttpFormUrlEncodedContent corrente.

TryComputeLength(UInt64)

Calcola la lunghezza HttpFormUrlEncodedContent in byte.

WriteToStreamAsync(IOutputStream)

Scrivere httpFormUrlEncodedContent in un flusso di output come operazione asincrona.

Si applica a

Vedi anche