 | IMimeContentWriteToAsync Method |
Asynchronously copy the content stream to the specified output stream.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
SyntaxTask WriteToAsync(
Stream stream,
CancellationToken cancellationToken = default
)
Parameters
- stream
- Type: System.IOStream
The output stream. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
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