FolderStatusUidValidity Property
Gets the UID validity value of the folder.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public long UidValidity { get; }

Property Value

Type: Int64
The positive 32-bit Int64 value containing the UID validity value of the folder, or -1 if this information is not available.

If UIDs from an earlier session fail to persist in this session, the UidValidity value will be greater than the one used in the earlier session.

The client may save this property value for each folder and then, on each new session, compare saved value with the value obtained from the server. If UID validity value returned by the server in the current session is larger than saved value, the client cannot rely the UIDs of messages in the folder are the same as they were during the earlier session. However, mail servers which fail to persist UIDs between sessions are very uncommon nowadays.

See Also