ByteArrayContent.SerializeToStreamAsync(Stream, TransportContext) Metodo

Definizione

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);
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