Mime |
public void WriteTo( FormatOptions options, Stream stream, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | options is null. -or- stream is null. |
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.