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

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

Parameters

itemIds
Type: System.Collections.GenericIEnumerableEwsItem
The IDs of the items to download. Null reference (Nothing in Visual Basic) not allowed
parts
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.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

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