 | 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.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<List<FolderInfo>> GetFoldersTreeAsync(
SubFolders subFolders,
CancellationToken cancel = default
)
Public Function GetFoldersTreeAsync (
subFolders As SubFolders,
Optional cancel As CancellationToken = Nothing
) As Task(Of List(Of FolderInfo))
public:
Task<List<FolderInfo^>^>^ GetFoldersTreeAsync(
SubFolders subFolders,
CancellationToken cancel = CancellationToken()
)
member GetFoldersTreeAsync :
subFolders : SubFolders *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<List<FolderInfo>> 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
TaskListFolderInfoFolder tree roots (use
SubFolders to access sub folders).
See Also