Click or drag to resize
MimeKit

MimeReaderOnMultipartBegin Method

Called when the beginning of a multipart is encountered in the stream.

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

Parameters

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

Called when the beginning of a multipart is encountered in the stream.

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

See Also