IMailSpoolGetMessageHeadersAsync(Int32, CancellationToken) Method

Asynchronously get the headers for the specified message.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
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