Click or drag to resize
MimeKit

MailStoreGetFolder(SpecialFolder) Method

Get the specified special folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax
C#
public abstract IMailFolder GetFolder(
	SpecialFolder folder
)

Parameters

folder  SpecialFolder
The type of special folder.

Return Value

IMailFolder
The folder if available; otherwise null.

Implements

IMailStoreGetFolder(SpecialFolder)
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionfolder is out of range.
ObjectDisposedException The MailStore has been disposed.
ServiceNotConnectedException The MailStore is not connected.
ServiceNotAuthenticatedException The MailStore is not authenticated.
Remarks
Not all mail stores support special folders. Each implementation should provide a way to determine if special folders are supported.
See Also