Click or drag to resize
MimeKit

MailSpoolSupportsUids Property

Get whether or not the service supports referencing messages by UIDs.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
public abstract bool SupportsUids { get; }

Property Value

Boolean
true if supports uids; otherwise, false.

Implements

IMailSpoolSupportsUids
Exceptions
ExceptionCondition
ObjectDisposedException The MailSpool has been disposed.
InvalidOperationException The MailSpool is not connected.
ServiceNotAuthenticatedException The MailSpool is not authenticated.
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.

See Also