EwsDownloadItem Method (ItemId, PropertySet)
Downloads the specified item by its ID.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 EwsItem DownloadItem(
	ItemId id,
	PropertySet properties
)

Parameters

id
Type: ItemId
The ID of the item. 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: EwsItem
The downloaded item, or a null reference (Nothing in Visual Basic) on error.
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks

To get item IDs, you can use DownloadItemIds(FolderId, Boolean) or Search(FolderId, SearchFilter) methods and then pass Id of items of the returned list to the current method.

In advanced cases, you can store UniqueId string in database and later recreate ItemId object using #ctor(String) constructor. Then you can supply that object to this method. This is useful in case if you need to get IDs for items and items themselves at different times.

See Also