Mime ParserOn Multipart Preamble Begin Async Method
Called when the beginning of the preamble of a multipart is encountered in the stream.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
An asynchronous task context.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual Task OnMultipartPreambleBeginAsync(
long beginOffset,
int beginLineNumber,
CancellationToken cancellationToken
)Parameters
- beginOffset Int64
- The offset into the stream where the preamble began.
- beginLineNumber Int32
- The line number where the preamble began.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks
Called when the beginning of the preamble of a multipart is encountered in the stream.
This method is always paired with a corresponding call to OnMultipartPreambleEndAsync(Int64, Int32, Int64, Int32, CancellationToken).