Click or drag to resize
MimeKit

MimeReaderOnMimePartEndAsync Method

Called when the end of a MIME part is encountered in the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.7.1
Syntax
C#
protected virtual Task OnMimePartEndAsync(
	ContentType contentType,
	long beginOffset,
	int beginLineNumber,
	long headersEndOffset,
	long endOffset,
	int lines,
	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 began.
beginLineNumber  Int32
The line number where the MIME part began.
headersEndOffset  Int64
The offset into the stream where the MIME part headers ended and the content began.
endOffset  Int64
The offset into the stream where the MIME part ends.
lines  Int32
The length of the MIME part as measured in lines.
cancellationToken  CancellationToken
The cancellation token.

Return Value

Task
An asynchronous task context.
Remarks

Called when the end of a MIME part is encountered in the stream.

This method is always paired with a corresponding call to OnMimePartBeginAsync(ContentType, Int64, Int32, CancellationToken).

See Also