EwsDownloadFolders Method (Boolean)
Downloads the list of folders of the MS Exchange account.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
Syntax
public List<EwsFolder> DownloadFolders(
	bool includeSubfolders
)

Parameters

includeSubfolders
Type: SystemBoolean
If true, sub-folders will also be returned; otherwise, only the current level of folders.

Return Value

Type: ListEwsFolder
The list of folders of the current MS Exchange account under RootFolderType, if the folder list was downloaded successfully; otherwise, a null reference (Nothing in Visual Basic).
Exceptions
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
Remarks
This method returns the list of sub-folders of RootFolderType folder (and their own sub-folders if includeSubfolders is true).
See Also