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)
ParameterTypeDescription
parentFolderStringName of the folder
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
optionsListFoldersOptionsOptions for operation
returnOptionsListFoldersReturnOptionsReturn options for operation
connectionIConnectionConnection to a server
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also