IAsyncImapClient.ListFoldersAsync
IAsyncImapClient.ListFoldersAsync method
Gets the list of subfolders in the specified folder
public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder = null,
bool loadFullInfo = false, ListFoldersOptions options = ListFoldersOptions.None,
ListFoldersReturnOptions returnOptions = ListFoldersReturnOptions.None,
IConnection connection = null, CancellationToken token = default)
Parameter | Type | Description |
---|---|---|
parentFolder | String | Name of the folder |
loadFullInfo | Boolean | If true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved. |
options | ListFoldersOptions | Options for operation |
returnOptions | ListFoldersReturnOptions | Return options for operation |
connection | IConnection | Connection to a server |
token | CancellationToken | Propagates notification that operations should be canceled. |
Return Value
Task object, with delegate for this operation
See Also
- class ImapFolderInfoCollection
- enum ListFoldersOptions
- enum ListFoldersReturnOptions
- interface IConnection
- interface IAsyncImapClient
- namespace Aspose.Email.Clients.Imap
- assembly Aspose.Email