MimeReaderOnMimePartContentRead Method

Called when MIME part content is read from the stream.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual void OnMimePartContentRead(
	byte[] buffer,
	int startIndex,
	int count,
	CancellationToken cancellationToken
)

Parameters

buffer  Byte
A buffer containing the MIME part content.
startIndex  Int32
The index denoting the starting position of the content within the buffer.
count  Int32
The length of the content within the buffer, in bytes.
cancellationToken  CancellationToken
The cancellation token.

Remarks

Called when MIME part content is read from the stream.

The newline sequence that precedes a multipart boundary marker is considered to be part of the boundary marker and is not included in the content passed to this method.

See Also