ImapClient.ListFoldersAsync

ListFoldersAsync(IConnection)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection)
ParameterTypeDescription
connectionIConnectionConnection to a server

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, string)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, string parentFolder)
ParameterTypeDescription
connectionIConnectionConnection to a server
parentFolderStringName of the folder

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, bool)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, bool loadFullInfo)
ParameterTypeDescription
connectionIConnectionConnection to a server
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync()

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync()

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(string)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder)
ParameterTypeDescription
parentFolderStringName of the folder

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(bool)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(bool loadFullInfo)
ParameterTypeDescription
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(string, bool)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder, bool loadFullInfo)
ParameterTypeDescription
parentFolderStringName of the folder
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, string, bool)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, string parentFolder, 
    bool loadFullInfo)
ParameterTypeDescription
connectionIConnectionConnection to a server
parentFolderStringName of the folder
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(string, bool, ListFoldersOptions, ListFoldersReturnOptions)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder, bool loadFullInfo, 
    ListFoldersOptions options, ListFoldersReturnOptions returnOptions)
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

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, string, bool, ListFoldersOptions, ListFoldersReturnOptions)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, string parentFolder, 
    bool loadFullInfo, ListFoldersOptions options, ListFoldersReturnOptions returnOptions)
ParameterTypeDescription
connectionIConnectionConnection to a server
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

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, CancellationToken)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, string, CancellationToken)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, string parentFolder, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
parentFolderStringName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, bool, CancellationToken)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, bool loadFullInfo, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(CancellationToken)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(CancellationToken token)
ParameterTypeDescription
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(string, CancellationToken)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder, CancellationToken token)
ParameterTypeDescription
parentFolderStringName of the folder
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(bool, CancellationToken)

Gets the list of folders in the mailbox

public Task<ImapFolderInfoCollection> ListFoldersAsync(bool loadFullInfo, CancellationToken token)
ParameterTypeDescription
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(string, bool, CancellationToken)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder, bool loadFullInfo, 
    CancellationToken token)
ParameterTypeDescription
parentFolderStringName of the folder
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, string, bool, CancellationToken)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, string parentFolder, 
    bool loadFullInfo, CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
parentFolderStringName of the folder
loadFullInfoBooleanIf true indicates that folder information should be retrieved from a server completely, otherwise only folder names are retrieved.
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(string, bool, ListFoldersOptions, ListFoldersReturnOptions, CancellationToken)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(string parentFolder, bool loadFullInfo, 
    ListFoldersOptions options, ListFoldersReturnOptions returnOptions, CancellationToken token)
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
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also


ListFoldersAsync(IConnection, string, bool, ListFoldersOptions, ListFoldersReturnOptions, CancellationToken)

Gets the list of subfolders in the specified folder

public Task<ImapFolderInfoCollection> ListFoldersAsync(IConnection connection, string parentFolder, 
    bool loadFullInfo, ListFoldersOptions options, ListFoldersReturnOptions returnOptions, 
    CancellationToken token)
ParameterTypeDescription
connectionIConnectionConnection to a server
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
tokenCancellationTokenPropagates notification that operations should be canceled.

Return Value

Task object, with delegate for this operation

See Also