EwsDownloadItems Method (IEnumerableEwsItem, PropertySet)
Downloads the specified items using PropertySet settings.

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,
	PropertySet properties
)

Parameters

itemIds
Type: System.Collections.GenericIEnumerableEwsItem
The IDs of the items to download. Null reference (Nothing in Visual Basic) not allowed
properties
Type: PropertySet
The settings which specify which portions of MS Exchange items to download (e.g. item ID, mail header, body, etc). If a null reference, only item ID is requested.

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.

You can build PropertySet object manually or use CreatePropSet(EwsItemParts) method for this (or just use DownloadItems(IEnumerable<EwsItem>, EwsItemParts) overload).

See Also