MailStoreGetFolder(FolderNamespace) Method

Get the folder for the specified namespace.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public abstract IMailFolder GetFolder(
	FolderNamespace namespace
)

Parameters

namespace  FolderNamespace
The namespace.

Return Value

IMailFolder
The folder.

Implements

IMailStoreGetFolder(FolderNamespace)

Remarks

Gets the folder for the specified namespace.

Exceptions

ArgumentNullException namespace is .
ObjectDisposedException The MailStore has been disposed.
ServiceNotConnectedException The MailStore is not connected.
ServiceNotAuthenticatedException The MailStore is not authenticated.
FolderNotFoundException The folder could not be found.

See Also