Mail 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#
public abstract bool SupportsUids { get; }Property Value
Booleanif supports uids; otherwise, .
Implements
IMailSpoolSupportsUidsRemarks
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.
Exceptions
| ObjectDisposedException | The MailSpool has been disposed. |
| InvalidOperationException | The MailSpool is not connected. |
| ServiceNotAuthenticatedException | The MailSpool is not authenticated. |