 | ImapGetSubscribedFoldersAsync(String, CancellationToken) Method |
Lists folders (mailboxes) user is subscribed to, starting from specified folder.
Namespace: Limilabs.Client.IMAPAssembly: Mail (in Mail.dll) Version: 3.0.26106.1555
Syntaxpublic Task<List<FolderInfo>> GetSubscribedFoldersAsync(
string folder,
CancellationToken cancel = default
)
Public Function GetSubscribedFoldersAsync (
folder As String,
Optional cancel As CancellationToken = Nothing
) As Task(Of List(Of FolderInfo))
public:
Task<List<FolderInfo^>^>^ GetSubscribedFoldersAsync(
String^ folder,
CancellationToken cancel = CancellationToken()
)
member GetSubscribedFoldersAsync :
folder : string *
?cancel : CancellationToken
(* Defaults:
let _cancel = defaultArg cancel new CancellationToken()
*)
-> Task<List<FolderInfo>> Parameters
- folder String
- Parent folder (mailbox) to start search from.
- 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