Mime ParserParse Entity Async Method
Asynchronously parse an entity from the stream.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The parsed entity.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public Task<MimeEntity> ParseEntityAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskMimeEntityThe parsed entity.
Implements
IMimeParserParseEntityAsync(CancellationToken)Remarks
Asynchronously parses an entity from the stream.
Exceptions
| OperationCanceledException | The operation was canceled via the cancellation token. |
| FormatException | There was an error parsing the entity. |
| IOException | An I/O error occurred. |