FolderStatusUidValidity Property
Gets the UID validity value of the folder.

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
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.
Remarks

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