 | IMimeContentWriteToAsync Method |
Asynchronously copy the content stream to the specified output stream.
Namespace: MimeKitAssembly: MimeKit (in MimeKit.dll) Version: 4.10.0
SyntaxTask WriteToAsync(
Stream stream,
CancellationToken cancellationToken = default
)
Parameters
- stream Stream
- The output stream.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn awaitable task.
Exceptions
RemarksThis is equivalent to simply using CopyTo(Stream)
to copy the content stream to the output stream except that this method is cancellable.
See Also