ImapDownloadFoldersAsync Method (Boolean, String, String) |
Namespace: MailBee.ImapMailAssembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax public Task<FolderCollection> DownloadFoldersAsync(
bool subscribedOnly,
string parentFolderName,
string pattern
)
Public Function DownloadFoldersAsync (
subscribedOnly As Boolean,
parentFolderName As String,
pattern As String
) As Task(Of FolderCollection)
Parameters
- subscribedOnly
- Type: SystemBoolean
If true, only subscribed folders will be downloaded; otherwise, all the folders. - parentFolderName
- Type: SystemString
The full name of the folder which subfolders must be downloaded, or a null reference (Nothing in Visual Basic) to download all the folders. - pattern
- Type: SystemString
The exact or wildcard name (relative to parentFolderName) of the folder or folders to be downloaded, or a null reference (Nothing in Visual Basic) to download all the folders.
Return Value
Type:
TaskFolderCollectionA task that represents the asynchronous operation.
The value of
TResult parameter is
FolderCollection object if the folder list was downloaded successfully; otherwise, a null reference (
Nothing in Visual Basic).
Exceptions See Also