Click or drag to resize
MimeKit

ExperimentalMimeParserParseMessageAsync Method

Asynchronously parse a message from the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
public Task<MimeMessage> ParseMessageAsync(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskMimeMessage
The parsed message.

Implements

IMimeParserParseMessageAsync(CancellationToken)
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
Asynchronously parses a message from the stream.
See Also