EwsDownloadFolders Method (FolderId, Boolean, Boolean) |
Downloads the list of folders of the MS Exchange account.
Namespace: MailBee.EwsMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public List<EwsFolder> DownloadFolders(
FolderId parentFolderId,
bool includeParentFolder,
bool includeSubfolders
)
Public Function DownloadFolders (
parentFolderId As FolderId,
includeParentFolder As Boolean,
includeSubfolders As Boolean
) As List(Of EwsFolder)
Parameters
- parentFolderId
- Type: FolderId
The ID of the folder for which to return folders. If a null reference (Nothing in Visual Basic), RootFolderType value will be used. - includeParentFolder
- Type: SystemBoolean
If true, the folder denoted by parentFolderId will be included in the resulting list; otherwise, it won't be there. - includeSubfolders
- Type: SystemBoolean
If true, sub-folders will also be returned; otherwise, only the current level of folders.
Return Value
Type:
ListEwsFolderThe list of folders of the current MS Exchange account under
parentFolderId, if the folder list was downloaded successfully; otherwise, a null reference (
Nothing in Visual Basic).
Exceptions Remarks
This method returns the list of sub-folders of
parentFolderId folder (and their own sub-folders if
includeSubfolders is
true).
See Also