IMail SpoolGet Message Uids Async Method
Asynchronously get the full list of available message UIDs.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The message UIDs.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
Task<IList<string>> GetMessageUidsAsync(
CancellationToken cancellationToken = default
)Parameters
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskIListStringThe message UIDs.
Remarks
Not all servers support UIDs, so you should first check
the SupportsUids property.