EwsDownloadItems Method (IEnumerableEwsItem, EwsItemParts)
Downloads the specified portions of the specified items.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public EwsItemList DownloadItems(
	IEnumerable<EwsItem> itemIds,
	EwsItemParts parts


Type: System.Collections.GenericIEnumerableEwsItem
The IDs of the items to download. Null reference (Nothing in Visual Basic) not allowed
Type: MailBee.EwsMailEwsItemParts
The settings which specify which portions of MS Exchange items to download (e.g. item ID, mail header, body, etc). You can combine multiple values.

Return Value

Type: EwsItemList
The list of items in the given folder, or a null reference (Nothing in Visual Basic) on error.
MailBeeExceptionAn error occurred and ThrowExceptions is true.
NotImplementedExceptionThe .NET runtime is .NET Core.

To get the list of item IDs for downloading you can use DownloadItemIds(FolderId, Boolean) or Search(FolderId, SearchFilter) methods.

This overload lets you utilize Managed EWS API if you need to download only some portion of items in the folder (for instance, to enable paged output). 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.

See Also