Click or drag to resize
MimeKit

IMailStoreGetFolder Method (SpecialFolder)

Get the specified special folder.

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

Parameters

folder
Type: MailKitSpecialFolder
The type of special folder.

Return Value

Type: IMailFolder
The folder if available; otherwise null.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionfolder is out of range.
Remarks
Not all message stores support the concept of special folders, so this method may return null.
See Also