 | ImapClientGetFolders Method (FolderNamespace, StatusItems, Boolean, CancellationToken) |
Get all of the folders within the specified namespace.
Namespace:
MailKit.Net.Imap
Assembly:
MailKit (in MailKit.dll) Version: 2.10.0
Syntaxpublic override IList<IMailFolder> GetFolders(
FolderNamespace namespace,
StatusItems items = StatusItems.None,
bool subscribedOnly = false,
CancellationToken cancellationToken = null
)
Parameters
- namespace
- Type: MailKitFolderNamespace
The namespace. - items (Optional)
- Type: MailKitStatusItems
The status items to pre-populate. - subscribedOnly (Optional)
- Type: SystemBoolean
If set to true, only subscribed folders will be listed. - cancellationToken (Optional)
- Type: System.ThreadingCancellationToken
The cancellation token.
Return Value
Type:
IListIMailFolderThe folders.
Implements
IMailStoreGetFolders(FolderNamespace, StatusItems, Boolean, CancellationToken)IMailStoreGetFolders(FolderNamespace, StatusItems, Boolean, CancellationToken)
Exceptions
Remarks
Gets all of the folders within the specified namespace.
See Also