Mime ParserOn Header Read Async Method
Called when a message or MIME part header is read from the stream.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
An asynchronous task context.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
protected virtual Task OnHeaderReadAsync(
Header header,
int beginLineNumber,
CancellationToken cancellationToken
)Parameters
- header Header
- The header that was read from the stream.
- beginLineNumber Int32
- The line number where the header exists within the stream.
- cancellationToken CancellationToken
- The cancellation token.
Return Value
TaskAn asynchronous task context.
Remarks
This method will be called whenever a message or MIME part header is encountered within the stream.