![]() | IMailStoreGetFoldersAsync Method (FolderNamespace, Boolean, CancellationToken) |
Namespace: MailKit
Task<IList<IMailFolder>> GetFoldersAsync( FolderNamespace namespace, bool subscribedOnly, CancellationToken cancellationToken = default )
Exception | Condition |
---|---|
ArgumentNullException | namespace is null. |
ObjectDisposedException | The IMailStore has been disposed. |
OperationCanceledException | The operation was canceled via the cancellation token. |
ServiceNotConnectedException | The IMailService is not connected. |
ServiceNotAuthenticatedException | The IMailService is not authenticated. |
FolderNotFoundException | The namespace folder could not be found. |
IOException | An I/O error occurred. |
ProtocolException | A protocol error occurred. |
CommandException | The command failed. |