MultipartContent.SerializeToStreamAsync Method
Definition
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.
Overloads
SerializeToStreamAsync(Stream, TransportContext) |
Serialize the multipart HTTP content to a stream as an asynchronous operation. |
SerializeToStreamAsync(Stream, TransportContext, CancellationToken) |
Serialize the multipart HTTP content to a stream as an asynchronous operation. |
SerializeToStreamAsync(Stream, TransportContext)
- Source:
- MultipartContent.cs
- Source:
- MultipartContent.cs
- Source:
- MultipartContent.cs
Serialize the multipart HTTP content to a stream as an asynchronous operation.
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
Parameters
- stream
- Stream
The target stream.
- context
- TransportContext
Information about the transport (channel binding token, for example). This parameter may be null
.
Returns
The task object representing the asynchronous operation.
Remarks
This operation will not block. The returned Task<TResult> object will complete after all of the content has been serialized to the target stream.
Applies to
SerializeToStreamAsync(Stream, TransportContext, CancellationToken)
- Source:
- MultipartContent.cs
- Source:
- MultipartContent.cs
- Source:
- MultipartContent.cs
Serialize the multipart HTTP content to a 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
Parameters
- stream
- Stream
The target stream.
- context
- TransportContext
Information about the transport (channel binding token, for example). This parameter may be null
.
- cancellationToken
- CancellationToken
The cancellation token to cancel the operation.
Returns
The task object representing the asynchronous operation.
Exceptions
The cancellation token was canceled. This exception is stored into the returned task.
Remarks
This operation will not block. The returned Task<TResult> object will complete after all of the content has been serialized to the target stream.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για