Click or drag to resize
MimeKit

FilteredStreamFlush(CancellationToken) Method

Clear all buffers for this stream and causes any buffered data to be written to the underlying device.

Namespace: MimeKit.IO
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public void Flush(
	CancellationToken cancellationToken
)

Parameters

cancellationToken  CancellationToken
The cancellation token.

Implements

ICancellableStreamFlush(CancellationToken)
Exceptions
ExceptionCondition
ObjectDisposedException The stream has been disposed.
NotSupportedException The stream does not support writing.
OperationCanceledException The operation was canceled via the cancellation token.
IOException An I/O error occurred.
Remarks
Flushes the state of all filters, writing any output to the underlying Source stream and then calling Flush on the Source.
See Also