Click or drag to resize
MimeKit

MailStoreGetFolder Method (SpecialFolder)

Get the specified special folder.

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

Parameters

folder
Type: MailKitSpecialFolder
The type of special folder.

Return Value

Type: 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