| IMailStoreGetFolders(FolderNamespace, Boolean, CancellationToken) Method |
Get all of the folders within the specified namespace.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax IList<IMailFolder> GetFolders(
FolderNamespace namespace,
bool subscribedOnly,
CancellationToken cancellationToken = default
)
Parameters
- namespace FolderNamespace
- The namespace.
- subscribedOnly Boolean
- If set to true, only subscribed folders will be listed.
- cancellationToken CancellationToken (Optional)
- The cancellation token.
Return Value
IListIMailFolderThe folders.
Exceptions Remarks
Gets all of the folders within the specified namespace.
See Also