Click or drag to resize

ImapGetFoldersTreeAsync(SubFolders, CancellationToken) Method

Lists folder tree roots starting from root. 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(
	SubFolders subFolders,
	CancellationToken cancel = default
)

Parameters

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