|  | IMime | 
 Syntax
Syntaxvoid WriteTo( Stream stream, CancellationToken cancellationToken = default )
 Exceptions
Exceptions| Exception | Condition | 
|---|---|
| ArgumentNullException | stream is . | 
| OperationCanceledException | The operation was cancelled via the cancellation token. | 
| IOException | An I/O error occurred. | 
 Remarks
RemarksThis 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. | 
 See Also
See Also