|EwsDownloadFolders Method (FolderId, FolderView, SearchFilter, Boolean)|
Downloads the list of folders of the MS Exchange account.
MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public List<EwsFolder> DownloadFolders(
Public Function DownloadFolders (
parentFolderId As FolderId,
view As FolderView,
filter As SearchFilter,
includeParentFolder As Boolean
) As List(Of EwsFolder)
- 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.
- Type: FolderView
Managed EWS view object which configures how many folders to return, whether or not to include sub-folders, ordering, etc. If a null reference, MailBee will pass the view
which lists no sub-folders, max item count, normal ordering.
- Type: SearchFilter
Managed EWS filter which configures what kind of folders to return. If a null reference, no filter will be applied and all kinds of folders will be returned.
- Type: SystemBoolean
If true, the folder denoted by parentFolderId will be included in the resulting list; otherwise, it won't be there.
The 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).
This method returns the list of sub-folders of parentFolderId
folder accordingly the specified settings. If you don't need non-email folders, you can pass
property as filter