Click or drag to resize
MimeKit

IMailSpoolGetMessageUidsAsync Method

Asynchronously get the full list of available message UIDs.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task<IList<string>> GetMessageUidsAsync(
	CancellationToken cancellationToken = default
)

Parameters

cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskIListString
The message UIDs.
Remarks
Not all servers support UIDs, so you should first check the SupportsUids property.
See Also