EwsDownloadItems Method (FolderId, ItemView, Boolean, EwsItemParts) |
Namespace: MailBee.EwsMail
public EwsItemList DownloadItems( FolderId id, ItemView view, bool unreadOnly, EwsItemParts parts )
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.
This overload lets you specify EWS's ItemView object to configure ordering and paging of the results. Alternatively, you can download all IDs of all items using DownloadItemIds(FolderId, Boolean) method and then use DownloadItems(IEnumerable<EwsItem>, EwsItemParts) overload to download the requested items.
You can also use DownloadItems(FolderId, int, int, bool, EwsItemParts) overload if you have a range of messages you want to download.
With the current overload you can download entire messages by passing MailMessageFull as parts parameter value.
Note |
---|
This method is not implemented in .NET Core. Use DownloadItemsAsync(FolderId, ItemView, Boolean, EwsItemParts) instead. |