HttpFormUrlEncodedContent Classe

Définition

Fournit du contenu HTTP qui utilise des données nom/valeur encodées avec le type MIME application/x-www-form-urlencoded .

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
Héritage
Object Platform::Object IInspectable HttpFormUrlEncodedContent
Attributs
Implémente

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Constructeurs

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

Initialise une nouvelle instance de la classe HttpFormUrlEncodedContent avec le contenu spécifié.

Propriétés

Headers

Obtenez une collection d’en-têtes de contenu définis sur httpFormUrlEncodedContent.

Méthodes

BufferAllAsync()

Sérialisez httpFormUrlEncodedContent en mémoire en tant qu’opération asynchrone.

Close()

Ferme le instance HttpFormUrlEncodedContent et libère les ressources allouées.

Dispose()

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition des ressources non managées.

ReadAsBufferAsync()

Sérialisez httpFormUrlEncodedContent dans une mémoire tampon en tant qu’opération asynchrone.

ReadAsInputStreamAsync()

Sérialisez httpFormUrlEncodedContent et retournez un flux d’entrée qui représente le contenu en tant qu’opération asynchrone.

ReadAsStringAsync()

Sérialisez httpFormUrlEncodedContent en une chaîne en tant qu’opération asynchrone.

ToString()

Renvoie une chaîne qui représente l’objet HttpFormUrlEncodedContent actuel.

TryComputeLength(UInt64)

Calcule la longueur de HttpFormUrlEncodedContent en octets.

WriteToStreamAsync(IOutputStream)

Écrivez httpFormUrlEncodedContent dans un flux de sortie en tant qu’opération asynchrone.

S’applique à

Voir aussi