Click or drag to resize
MimeKit

MimeReaderReadMessage Method

Read a message from the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.3.0
Syntax
C#
public void ReadMessage(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

The parsed message.
Exceptions
ExceptionCondition
OperationCanceledException The operation was canceled via the cancellation token.
FormatException There was an error parsing the message.
IOException An I/O error occurred.
Remarks
Reads a message from the stream.
See Also