Click or drag to resize
MimeKit

MimeReaderOnMessagePartBegin Method

Called when the beginning of a message part is encountered in the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected virtual void OnMessagePartBegin(
	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 message part begins.
beginLineNumber  Int32
The line number where the message part begins.
cancellationToken  CancellationToken
The cancellation token.
Remarks

Called when the beginning of a message part is encountered in the stream.

This method is always paired with a corresponding call to OnMessagePartEnd(ContentType, Int64, Int32, Int64, Int64, Int32, CancellationToken) when the end of the message part is found.

See Also