IMail SpoolSupports Uids Property
Get whether or not the service supports referencing messages by UIDs.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
if supports uids; otherwise, .
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
bool SupportsUids { get; }Property Value
Booleanif supports uids; otherwise, .
Remarks
Not all servers support referencing messages by UID, so this property should be checked before using GetMessageUid(Int32, CancellationToken) and GetMessageUids(CancellationToken).
If the server does not support UIDs, then all methods that take UID arguments along with GetMessageUid(Int32, CancellationToken) and GetMessageUids(CancellationToken) will fail.