Click or drag to resize

ImapGetFoldersTreeAsync(FolderInfo, SubFolders, CancellationToken) Method

Lists folder tree roots starting from specified folder (mailbox). In contrast to GetFolders method only roots are returned. You can use SubFolders to access sub folders.

Namespace: Limilabs.Client.IMAP
Assembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntax
public Task<List<FolderInfo>> GetFoldersTreeAsync(
	FolderInfo parent,
	SubFolders subFolders,
	CancellationToken cancel = default
)

Parameters

parent  FolderInfo
Parent folder (mailbox) to start search from.
subFolders  SubFolders
Indicates how many sub folder levels should be downloaded.
cancel  CancellationToken  (Optional)
A cancellation token that can be used to signal the asynchronous operation should be canceled.

Return Value

TaskListFolderInfo
Folder tree roots (use SubFolders to access sub folders).
See Also