Click or drag to resize
MimeKit

IMailStoreGetFolder Method (FolderNamespace)

Get the folder for the specified namespace.

Namespace:  MailKit
Assembly:  MailKit (in MailKit.dll) Version: 3.0.0
Syntax
C#
IMailFolder GetFolder(
	FolderNamespace namespace
)

Parameters

namespace
Type: MailKitFolderNamespace
The namespace.

Return Value

Type: IMailFolder
The folder.
Exceptions
ExceptionCondition
ArgumentNullExceptionnamespace is null.
FolderNotFoundException The folder could not be found.
Remarks
The main reason to get the toplevel folder in a namespace is to list its child folders.
See Also