Click or drag to resize
MimeKit

MimeReaderOnMessagePartBeginAsync Method

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

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
protected virtual Task OnMessagePartBeginAsync(
	ContentType contentType,
	long beginOffset,
	int beginLineNumber,
	CancellationToken cancellationToken
)

Parameters

contentType
Type: MimeKitContentType
The parsed Content-Type header of the MIME part.
beginOffset
Type: SystemInt64
The offset into the stream where the message part begins.
beginLineNumber
Type: SystemInt32
The line number where the message part begins.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: Task
An asynchronous task context.
Remarks

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

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

See Also