Click or drag to resize
MimeKit

MimeReaderOnMultipartBoundaryReadAsync Method

Called when a multipart boundary is encountered in the stream.

Namespace: MimeKit
Assembly: MimeKit (in MimeKit.dll) Version: 4.12.0
Syntax
C#
protected virtual Task OnMultipartBoundaryReadAsync(
	byte[] buffer,
	int startIndex,
	int count,
	long beginOffset,
	int lineNumber,
	CancellationToken cancellationToken
)

Parameters

buffer  Byte
The buffer containing the boundary marker.
startIndex  Int32
The index denoting the starting position of the boundary marker within the buffer.
count  Int32
The length of the boundary marker within the buffer, in bytes.
beginOffset  Int64
The offset into the stream where the boundary marker began.
lineNumber  Int32
The line number where the boundary marker exists within the stream.
cancellationToken  CancellationToken
The cancellation token.

Return Value

Task
An asynchronous task context.
Remarks
Called when a multipart boundary is encountered in the stream.
See Also