 | ImapGetFoldersAsync(String, SubFolders, CancellationToken) Method |
Lists all folders (mailboxes) under specified folder (mailbox).
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<List<FolderInfo>> GetFoldersAsync(
string parent,
SubFolders subFolders,
CancellationToken cancel = default
)
Public Function GetFoldersAsync (
parent As String,
subFolders As SubFolders,
Optional cancel As CancellationToken = Nothing
) As Task(Of List(Of FolderInfo))
public:
Task<List<FolderInfo^>^>^ GetFoldersAsync(
String^ parent,
SubFolders subFolders,
CancellationToken cancel = CancellationToken()
)
member GetFoldersAsync :
parent : string *
subFolders : SubFolders *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<List<FolderInfo>> Parameters
- parent String
- 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
TaskListFolderInfoFolder 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