Tnef WriterFlush Async Method
Asynchronously flush the writer.
Definition
Namespace: MimeKit.Tnef
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
An asynchronous task context.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Task FlushAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks
Asynchronously writes the stream header and any buffered attributes to the output stream and then flushes
the output stream.
Exceptions
| ObjectDisposedException | The writer has been disposed. |
| InvalidOperationException | The stream or property writer for the previous attribute has not been disposed. |
| OperationCanceledException | The operation was canceled via the cancellation token. |
| IOException | An I/O error occurred. |