Click or drag to resize
MimeKit

Pop3ClientSupportsUids Property

Gets whether or not the Pop3Client supports referencing messages by UIDs.

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

Property Value

Boolean
true if supports UIDs; otherwise, false.

Implements

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