Mime |
public void WriteTo( FormatOptions options, Stream stream, CancellationToken cancellationToken = default )
| Exception | Condition |
|---|---|
| ArgumentNullException | options is . -or- stream is . |
| ObjectDisposedException | The MimeEntity has been disposed. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| IOException | An I/O error occurred. |
Writes the headers to the output stream, followed by a blank line.
Subclasses should override this method to write the content of the entity.