ImapClientListFoldersAsync Method (Boolean, CancellationToken)

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(
	bool loadFullInfo,
	CancellationToken token
)

Parameters

loadFullInfo
Type: SystemBoolean
If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
token
Type: System.ThreadingCancellationToken
Propagates notification that operations should be canceled.

Return Value

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