Click or drag to resize
MimeKit

IMailSpoolGetMessageHeadersAsync(Int32, CancellationToken) Method

Asynchronously get the headers for the specified message.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task<HeaderList> GetMessageHeadersAsync(
	int index,
	CancellationToken cancellationToken = default
)

Parameters

index  Int32
The index of the message.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskHeaderList
The message headers.
Remarks
Asynchronously gets the headers for the specified message.
See Also