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: 4.7.1
Syntax
C#
protected virtual void OnMultipartBegin(
	ContentType contentType,
	long beginOffset,
	int beginLineNumber,
	CancellationToken cancellationToken
)

Parameters

contentType  ContentType
The parsed Content-Type header of the multipart.
beginOffset  Int64
The offset into the stream where the multipart begins.
beginLineNumber  Int32
The line number where the multipart begins.
cancellationToken  CancellationToken
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