Mime ParserOn Mbox Marker Read Method
Called when an Mbox marker is encountered in the stream.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual void OnMboxMarkerRead(
byte[] buffer,
int startIndex,
int count,
CancellationToken cancellationToken
)Parameters
- buffer Byte
- The buffer containing the mbox marker.
- startIndex Int32
- The index denoting the starting position of the mbox marker within the buffer.
- count Int32
- The length of the mbox marker within the buffer, in bytes.
- cancellationToken CancellationToken
- The cancellation token.
Remarks
When the stream is specified to be in Mbox format, this method will be called whenever the parser encounters an Mbox marker.
It is not necessary to override this method unless it is desirable to track the offsets of mbox markers within a stream or to extract the mbox marker itself.