ImapClient.ListFolders

ListFolders(IConnection)

Gets the list of folders in the mailbox

public ImapFolderInfoCollection ListFolders(IConnection connection)
ParameterTypeDescription
connectionIConnectionConnection to a server

Return Value

Collection of ImapFolderInfo objects

See Also


ListFolders(IConnection, string)

Gets the list of subfolders in the specified folder

public ImapFolderInfoCollection ListFolders(IConnection connection, string parentFolder)
ParameterTypeDescription
connectionIConnectionConnection to a server
parentFolderStringName of the folder

Return Value

Collection of ImapFolderInfo objects

See Also


ListFolders(IConnection, bool)

Gets the list of folders in the mailbox

public ImapFolderInfoCollection ListFolders(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

Collection of ImapFolderInfo objects

See Also


ListFolders()

Gets the list of folders in the mailbox

public ImapFolderInfoCollection ListFolders()

Return Value

Collection of ImapFolderInfo objects

See Also


ListFolders(string)

Gets the list of subfolders in the specified folder

public ImapFolderInfoCollection ListFolders(string parentFolder)
ParameterTypeDescription
parentFolderStringName of the folder

Return Value

Collection of ImapFolderInfo objects

See Also


ListFolders(bool)

Gets the list of folders in the mailbox

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

Return Value

Collection of ImapFolderInfo objects

See Also


ListFolders(string, bool)

Gets the list of subfolders in the specified folder

public ImapFolderInfoCollection ListFolders(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

Collection of ImapFolderInfo objects

See Also


ListFolders(IConnection, string, bool)

Gets the list of subfolders in the specified folder

public ImapFolderInfoCollection ListFolders(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

Collection of ImapFolderInfo objects

See Also


ListFolders(string, bool, ListFoldersOptions, ListFoldersReturnOptions)

Gets the list of subfolders in the specified folder

public ImapFolderInfoCollection ListFolders(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

Collection of ImapFolderInfo objects

See Also


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

Gets the list of subfolders in the specified folder

public ImapFolderInfoCollection ListFolders(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

Collection of ImapFolderInfo objects

See Also