IMail SpoolGet Message Headers(Int 32, Cancellation Token) Method
Get the headers for the specified message.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The message headers.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
HeaderList GetMessageHeaders(
int index,
CancellationToken cancellationToken = default
)Parameters
- index Int32
- The index of the message.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
HeaderListThe message headers.
Remarks
Gets the headers for the specified message.