Click or drag to resize
MimeKit

IMailStoreGetFolderAsync Method

Asynchronously get the folder for the specified path.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task<IMailFolder> GetFolderAsync(
	string path,
	CancellationToken cancellationToken = default
)

Parameters

path  String
The folder path.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskIMailFolder
The folder.
Exceptions
ExceptionCondition
ArgumentNullExceptionpath is null.
OperationCanceledException The operation was canceled via the cancellation token.
FolderNotFoundException The folder could not be found.
IOException An I/O error occurred.
ProtocolException A protocol error occurred.
CommandException The command failed.
Remarks
Asynchronously gets the folder for the specified path.
See Also