Mime ParserOn Mime Part Begin Method
Called when the beginning of a MIME part is encountered in the stream.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual void OnMimePartBegin(
ContentType contentType,
long beginOffset,
int beginLineNumber,
CancellationToken cancellationToken
)Parameters
- contentType ContentType
- The parsed Content-Type header of the MIME part.
- beginOffset Int64
- The offset into the stream where the MIME part begins.
- beginLineNumber Int32
- The line number where the MIME part begins.
- cancellationToken CancellationToken
- The cancellation token.
Remarks
Called when the beginning of a MIME part is encountered in the stream.
This method is always paired with a corresponding call to OnMimePartEnd(ContentType, Int64, Int32, Int64, Int64, Int32, CancellationToken) when the end of the MIME part is found.