ImapDownloadFoldersAsync Method (Boolean)
async/await version of DownloadFolders(Boolean).

Namespace: MailBee.ImapMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.4 build 677 for .NET 4.5
Syntax
public Task<FolderCollection> DownloadFoldersAsync(
	bool subscribedOnly
)

Parameters

subscribedOnly
Type: SystemBoolean
If true, only subscribed folders will be downloaded; otherwise, all the folders.

Return Value

Type: TaskFolderCollection
A 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
ExceptionCondition
MailBeeExceptionAn error occurred and ThrowExceptions is true.
See Also