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: 12.4 build 677 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.
NotImplementedExceptionThe .NET runtime is .NET Core.
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.

Note Note
This method is not implemented in .NET Core. Use DownloadItemAsync(ItemId, PropertySet) instead.
See Also