IMailFolderFirstUnread Property

Get the index of the first unread message in the folder.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
int FirstUnread { get; }

Property Value

Int32
The index of the first unread message or -1 if there are no unread messages in the folder.

Remarks

Gets the index of the first unread message in the folder.

  Note

This value will only be set after the folder has been opened.

A value of -1 indicates that there are no unread messages in the folder or that the server has not provided the index of the first unread message.

See Also