IMime |
void WriteTo( Stream stream, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | stream is null. |
OperationCanceledException | The operation was cancelled via the cancellation token. |
IOException | An I/O error occurred. |
This is equivalent to simply using CopyTo(Stream) to copy the content stream to the output stream except that this method is cancellable.
Note |
---|
If you want the decoded content, use DecodeTo(Stream, CancellationToken) instead. |