HttpStreamContent Classe

Définition

Fournit du contenu HTTP qui utilise un flux.

public ref class HttpStreamContent sealed : IClosable, IStringable, IHttpContent
/// [Windows.Foundation.Metadata.Activatable(Windows.Web.Http.IHttpStreamContentFactory, 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 HttpStreamContent 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.IHttpStreamContentFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class HttpStreamContent final : IClosable, IStringable, IHttpContent
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Web.Http.IHttpStreamContentFactory), 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 HttpStreamContent : 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.IHttpStreamContentFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class HttpStreamContent : System.IDisposable, IStringable, IHttpContent
function HttpStreamContent(content)
Public NotInheritable Class HttpStreamContent
Implements IDisposable, IHttpContent, IStringable
Héritage
Object Platform::Object IInspectable HttpStreamContent
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

HttpStreamContent(IInputStream)

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

Propriétés

Headers

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

Méthodes

BufferAllAsync()

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

Close()

Ferme le instance HttpStreamContent 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 HttpStreamContent dans une mémoire tampon en tant qu’opération asynchrone.

ReadAsInputStreamAsync()

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

ReadAsStringAsync()

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

ToString()

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

TryComputeLength(UInt64)

Détermine si HttpStreamContent a une longueur valide en octets.

WriteToStreamAsync(IOutputStream)

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

S’applique à

Voir aussi