WellKnownFolderName Enumeration in Detail (Sorted A-Z)

Member name Description
ArchiveDeletedItems The Deleted Items folder in the archive mailbox.
ArchiveMsgFolderRoot The root of the message folder hierarchy in the archive mailbox.
ArchiveRecoverableItemsDeletions The root of the folder hierarchy of recoverable items that have been soft-deleted from the Deleted Items folder of the archive mailbox.
ArchiveRecoverableItemsPurges The root of the hierarchy of recoverable items that have been hard-deleted from the Deleted Items folder of the archive mailbox.
ArchiveRecoverableItemsRoot The root of the Recoverable Items folder hierarchy in the archive mailbox.
ArchiveRecoverableItemsVersions The root of the Recoverable Items versions folder hierarchy in the archive mailbox.
ArchiveRoot The root of the folder hierarchy in the archive mailbox.
Calendar The Calendar folder.
Contacts The Contacts folder.
DeletedItems The Deleted Items folder.
Drafts The Drafts folder.
Inbox The Inbox folder.
Journal The Journal folder.
JunkEmail The Junk E-mail folder.
MsgFolderRoot The root of the message folder hierarchy.
Notes The Notes folder.
Outbox The Outbox folder.
PublicFoldersRoot The root of the Public Folders hierarchy.
RecoverableItemsDeletions The root of the folder hierarchy of recoverable items that have been soft-deleted from the Deleted Items folder.
RecoverableItemsPurges The root of the folder hierarchy of recoverable items that have been hard-deleted from the Deleted Items folder.

Count Read Messages in a Folder using the WellKnownFolderName

In order to use this code you will need to get the GetBinding() method

CODE

/// <summary>
/// Obters the mensages lidas pasta.
/// </summary>
/// <param name="folder">The folder.</param>
/// <param name="pageSize">Size of the page.</param>
/// <returns></returns>
public static int ObterMensagesLidasPasta(WellKnownFolderName folder, int pageSize)
{
    ItemView view = new ItemView(pageSize, 0);
    SearchFilter sf = new SearchFilter.IsEqualTo(EmailMessageSchema.IsRead, true);

    FindItemsResults<Item> findResults = GetBinding().FindItems(folder, sf, view);
    return findResults.Items.Count;
}