Click or drag to resize
MimeKit

IMailStoreGetFolder(SpecialFolder) Method

Get the specified special folder.

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

Parameters

folder  SpecialFolder
The type of special folder.

Return Value

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