Click or drag to resize
MimeKit

MimeParserParseEntityAsync Method

Asynchronously parse an entity from the stream.

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
public Task<MimeEntity> ParseEntityAsync(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken (Optional)
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: TaskMimeEntity
The parsed entity.
Exceptions
ExceptionCondition
OperationCanceledException The operation was canceled via the cancellation token.
FormatException There was an error parsing the entity.
IOException An I/O error occurred.
Remarks
Asynchronously parses an entity from the stream.
See Also