ByteArrayContent.SerializeToStreamAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
| Nome | Descrizione |
|---|---|
| SerializeToStreamAsync(Stream, TransportContext) |
Serializzare e scrivere la matrice di byte fornita nel costruttore in un flusso di contenuto HTTP come operazione asincrona. |
| SerializeToStreamAsync(Stream, TransportContext, CancellationToken) |
Serializzare e scrivere la matrice di byte fornita nel costruttore in un flusso di contenuto HTTP come operazione asincrona. |
SerializeToStreamAsync(Stream, TransportContext)
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
Serializzare e scrivere la matrice di byte fornita nel costruttore in un flusso di contenuto HTTP come operazione asincrona.
protected:
override System::Threading::Tasks::Task ^ SerializeToStreamAsync(System::IO::Stream ^ stream, System::Net::TransportContext ^ context);
protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext context);
protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext? context);
override this.SerializeToStreamAsync : System.IO.Stream * System.Net.TransportContext -> System.Threading.Tasks.Task
Protected Overrides Function SerializeToStreamAsync (stream As Stream, context As TransportContext) As Task
Parametri
- stream
- Stream
Flusso di destinazione.
- context
- TransportContext
Informazioni sul trasporto, ad esempio il token di associazione del canale. Questo parametro può essere null.
Valori restituiti
Oggetto attività che rappresenta l'operazione asincrona.
Commenti
Questa operazione non si blocca. Al termine dell'oggetto restituito Task , l'intera matrice di byte è stata scritta nel stream parametro .
Si applica a
SerializeToStreamAsync(Stream, TransportContext, CancellationToken)
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
- Origine:
- ByteArrayContent.cs
Serializzare e scrivere la matrice di byte fornita nel costruttore in un flusso di contenuto HTTP come operazione asincrona.
protected:
override System::Threading::Tasks::Task ^ SerializeToStreamAsync(System::IO::Stream ^ stream, System::Net::TransportContext ^ context, System::Threading::CancellationToken cancellationToken);
protected override System.Threading.Tasks.Task SerializeToStreamAsync(System.IO.Stream stream, System.Net.TransportContext? context, System.Threading.CancellationToken cancellationToken);
override this.SerializeToStreamAsync : System.IO.Stream * System.Net.TransportContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overrides Function SerializeToStreamAsync (stream As Stream, context As TransportContext, cancellationToken As CancellationToken) As Task
Parametri
- stream
- Stream
Flusso di destinazione.
- context
- TransportContext
Informazioni sul trasporto, ad esempio il token di associazione del canale. Questo parametro può essere null.
- cancellationToken
- CancellationToken
Token di annullamento per annullare l'operazione.
Valori restituiti
Oggetto attività che rappresenta l'operazione asincrona.
Eccezioni
Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.
Commenti
Questa operazione non si blocca. Al termine dell'oggetto restituito Task , l'intera matrice di byte è stata scritta nel stream parametro .