EwsDownloadItems Method (FolderId, Boolean)
Downloads all or unread items in the specified folder.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public EwsItemList DownloadItems(
	FolderId id,
	bool unreadOnly
)

Parameters

id
Type: FolderId
The ID of the folder. Null reference (Nothing in Visual Basic) not allowed.
unreadOnly
Type: SystemBoolean
If true, only unread items are downloaded; otherwise, all the items.

Return Value

Type: EwsItemList
The list of all/unread items in the given folder, 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 specify the folder by its name, first get its ID with FindFolderIdByShortName(FolderId, String) or FindFolderIdByFullName(String) method.

This method can be slow or even time out for folders with thousands of items. For large folders, it's recommended to use overloads which let you specify item ranges.

Note Note
This overload downloads only basic properties of Exchange items. You need to use other overloads to get full e-mail messages.
Note Note
This method is not implemented in .NET Core. Use DownloadItemsAsync(FolderId, Boolean) instead.
See Also