EwsDownloadItemIds Method (FolderId, ItemView, Boolean) |
Namespace: MailBee.EwsMail
Exception | Condition |
---|---|
MailBeeException | An error occurred and ThrowExceptions is true. |
NotImplementedException | The .NET runtime is .NET Core. |
To specify the folder by its name, first get its ID with FindFolderIdByShortName(FolderId, String) or FindFolderIdByFullName(String) method.
Usually, you'll immediately pass the returned list to a method like DownloadItems(IEnumerableEwsItem, EwsItemParts). However, once you downloaded the item IDs, you can also store UniqueId values elsewhere and later recreate EwsItem objects from that strings using EwsItem(String) constructor.
Items are returned in the default sorting order which usually means "newer first" in Exchange. This is different from IMAP and POP3, where "older first" is the default.
Note |
---|
In the returned collection of EwsItem objects, you can access their Id and UniqueId properties only. Accessing other properties will cause an exception (because only ID was loaded for each item). |
Note |
---|
This method is not implemented in .NET Core. Use DownloadItemIdsAsync(FolderId, ItemView, Boolean) instead. |