  | IMailStoreGetFoldersAsync(FolderNamespace, Boolean, CancellationToken) Method | 
            Asynchronously get all of the folders within the specified namespace.
            
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.12.1
SyntaxTask<IList<IMailFolder>> GetFoldersAsync(
	FolderNamespace namespace,
	bool subscribedOnly,
	CancellationToken cancellationToken = default
)
Parameters
- namespace  FolderNamespace
 - The namespace.
 - subscribedOnly  Boolean
 - If set to , only subscribed folders will be listed.
 - cancellationToken  CancellationToken  (Optional)
 - The cancellation token.
 
Return Value
TaskIListIMailFolderThe folders.
Exceptions
Remarks
            Asynchronously gets all of the folders within the specified namespace.
            
See Also