Click or drag to resize
MimeKit

MimeReaderOnMimePartContentEndAsync Method

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

Namespace:  MimeKit
Assembly:  MimeKit (in MimeKit.dll) Version: 3.0.0
Syntax
C#
protected virtual Task OnMimePartContentEndAsync(
	long beginOffset,
	int beginLineNumber,
	long endOffset,
	int lines,
	NewLineFormat? newLineFormat,
	CancellationToken cancellationToken
)

Parameters

beginOffset
Type: SystemInt64
The offset into the stream where the MIME part content began.
beginLineNumber
Type: SystemInt32
The line number where the MIME part content began.
endOffset
Type: SystemInt64
The offset into the stream where the MIME part content ended.
lines
Type: SystemInt32
The length of the MIME part content as measured in lines.
newLineFormat
Type: SystemNullableNewLineFormat
The new-line format of the content, if known.
cancellationToken
Type: System.ThreadingCancellationToken
The cancellation token.

Return Value

Type: Task
An asynchronous task context.
Remarks

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

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

See Also