Gets the list of subfolders in the specified folder.

Namespace:  Rebex.Net
Assembly:  Rebex.Imap (in Rebex.Imap.dll)

Syntax

Visual Basic
Public Function GetFolderList ( _
	folder As String, _
	mode As ImapFolderListMode, _
	recursive As Boolean _
) As ImapFolderCollection
C#
public ImapFolderCollection GetFolderList(
	string folder,
	ImapFolderListMode mode,
	bool recursive
)

Parameters

folder
Type: System..::..String
The path to folder for which a list of subfolders is returned.
mode
Type: Rebex.Net..::..ImapFolderListMode
List mode that specifies whether to return all folders or subscribed only.
recursive
Type: System..::..Boolean
Specifies whether to return the whole subfolder tree.

Return Value

A list of subfolders.

Remarks

To subscribe and unsubscribe to folders, use Subscribe(String) and Unsubscribe(String) methods.

To get a list of root subfolders, use an empty string for folder.

This method represents IMAP LIST and LSUB commands.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also