IMailStoreGetFolder(SpecialFolder) Method

Get the specified special folder.

Definition

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

Parameters

folder  SpecialFolder
The type of special folder.

Return Value

IMailFolder
The folder if available; otherwise .

Remarks

Not all message stores support the concept of special folders, so this method may return .

Exceptions

ArgumentOutOfRangeException folder is out of range.

See Also