Click or drag to resize
MimeKit

IMailFolderFirstUnread Property

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

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.12.1
Syntax
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  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