 | ImapClientGetFoldersAsync(FolderNamespace, StatusItems, Boolean, CancellationToken) Method |
Asynchronously get all of the folders within the specified namespace.
Namespace: MailKit.Net.ImapAssembly: MailKit (in MailKit.dll) Version: 4.10.0
Syntaxpublic override Task<IList<IMailFolder>> GetFoldersAsync(
FolderNamespace namespace,
StatusItems items = StatusItems.None,
bool subscribedOnly = false,
CancellationToken cancellationToken = default
)
Parameters
- namespace FolderNamespace
- The namespace.
- items StatusItems (Optional)
- The status items to pre-populate.
- subscribedOnly Boolean (Optional)
- If set to , only subscribed folders will be listed.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
TaskIListIMailFolderThe folders.
Implements
IMailStoreGetFoldersAsync(FolderNamespace, StatusItems, Boolean, CancellationToken)IMailStoreGetFoldersAsync(FolderNamespace, StatusItems, Boolean, CancellationToken)
Exceptions
Remarks
Gets all of the folders within the specified namespace.
See Also