IMail StoreGet Folder(Folder Namespace) Method
Get the folder for the specified namespace.
Definition
Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
The folder.
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
IMailFolder GetFolder(
FolderNamespace namespace
)Parameters
- namespace FolderNamespace
- The namespace.
Return Value
IMailFolderThe folder.
Remarks
The main reason to get the toplevel folder in a namespace is
to list its child folders.
Exceptions
| ArgumentNullException | namespace is . |
| FolderNotFoundException | The folder could not be found. |