Click or drag to resize
MimeKit

MailFolderFirstUnread 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#
public int FirstUnread { get; protected set; }

Property Value

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

Implements

IMailFolderFirstUnread
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