MultipartFormDataContent.SerializeToStreamAsync Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serialize and write the content provided in the constructor to an HTTP content stream as an asynchronous operation.
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
- stream
- Stream
The target stream.
- context
- TransportContext
Information about the transport, like channel binding token. This parameter may be null
.
- cancellationToken
- CancellationToken
The cancellation token to cancel the operation.
The task object representing the asynchronous operation.
The cancellation token was canceled. This exception is stored into the returned task.
This operation does not block. When the returned Task object completes, the whole content has been written to the stream
parameter.
Produkt | Verzie |
---|---|
.NET | 5, 6, 7, 8, 9, 10 |
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: