ImapClientListFoldersAsync Method (IConnection, Boolean)

Gets the list of folders in the mailbox

Namespace:  Aspose.Email.Clients.Imap
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 22.4
Syntax
public Task<ImapFolderInfoCollection> ListFoldersAsync(
	IConnection connection,
	bool loadFullInfo
)

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
loadFullInfo
Type: SystemBoolean
If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.

Return Value

Type: TaskImapFolderInfoCollection
Task object, with delegate for this operation
See Also