Lists all folders (mailboxes) under specified folder (mailbox). Only direct children are returned.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.12102.1426

Syntax

C#
public List<FolderInfo> GetFoldersOneLevelDown(
	string folder
)
Visual Basic
Public Function GetFoldersOneLevelDown ( _
	folder As String _
) As List(Of FolderInfo)
Visual C++
public:
List<FolderInfo^>^ GetFoldersOneLevelDown(
	String^ folder
)

Parameters

folder
Type: System..::..String
Parent folder (mailbox) to start search from. Most serves require trailing separator (e.g. "[Gmail]/").

Return Value

Folder list.

Remarks

IMAP servers may differ in the separator character used in folder hierarchy paths. Common separator chars are '.' and '/'. For example: "Inbox/Folder" or "Inbox.Folder".

See Also