ImapClientListFoldersAsync Method (IConnection, String, Boolean, ListFoldersOptions, ListFoldersReturnOptions)

Gets the list of subfolders in the specified folder

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

Parameters

connection
Type: Aspose.Email.ClientsIConnection
Connection to a server
parentFolder
Type: SystemString
Name of the folder
loadFullInfo
Type: SystemBoolean
If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
options
Type: Aspose.Email.Clients.ImapListFoldersOptions
Options for operation
returnOptions
Type: Aspose.Email.Clients.ImapListFoldersReturnOptions
Return options for operation

Return Value

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