| IMailSpoolGetMessageHeadersAsync(Int32, CancellationToken) Method |
Asynchronously get the headers for the specified message.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax Task<HeaderList> GetMessageHeadersAsync(
int index,
CancellationToken cancellationToken = default
)
Parameters
- index Int32
- The index of the message.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskHeaderListThe message headers.
Remarks
Asynchronously gets the headers for the specified message.
See Also