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