 | MimeReaderOnHeaderReadAsync Method |
Called when a message or MIME part header is read from the stream.
Namespace:
MimeKit
Assembly:
MimeKit (in MimeKit.dll) Version: 3.0.0
Syntaxprotected virtual Task OnHeaderReadAsync(
Header header,
int beginLineNumber,
CancellationToken cancellationToken
)
Parameters
- header
- Type: MimeKitHeader
The header that was read from the stream. - beginLineNumber
- Type: SystemInt32
The line number where the header exists within the stream. - cancellationToken
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
TaskAn asynchronous task context.
Remarks
This method will be called whenever a message or MIME part header is encountered within the stream.
See Also