HttpStreamContent Classe

Definizione

Fornisce contenuto HTTP che usa un flusso.

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
Ereditarietà
Object Platform::Object IInspectable HttpStreamContent
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

HttpStreamContent(IInputStream)

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

Proprietà

Headers

Ottiene una raccolta di intestazioni di contenuto impostate in HttpStreamContent.

Metodi

BufferAllAsync()

Serializzare HttpStreamContent in memoria come operazione asincrona.

Close()

Chiude l'istanza HttpStreamContent e rilascia le risorse allocate.

Dispose()

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

ReadAsBufferAsync()

Serializzare HttpStreamContent in un buffer come operazione asincrona.

ReadAsInputStreamAsync()

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

ReadAsStringAsync()

Serializzare HttpStreamContent in un oggetto String come operazione asincrona.

ToString()

Restituisce una stringa che rappresenta l'oggetto HttpStreamContent corrente.

TryComputeLength(UInt64)

Determina se HttpStreamContent ha una lunghezza valida in byte.

WriteToStreamAsync(IOutputStream)

Scrivere HttpStreamContent in un flusso di output come operazione asincrona.

Si applica a

Vedi anche