Click or drag to resize
MimeKit

IMailFolderCreateAsync(String, IEnumerableSpecialFolder, CancellationToken) Method

Asynchronously create a new subfolder with the given name.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task<IMailFolder> CreateAsync(
	string name,
	IEnumerable<SpecialFolder> specialUses,
	CancellationToken cancellationToken = default
)

Parameters

name  String
The name of the folder to create.
specialUses  IEnumerableSpecialFolder
A list of special uses for the folder being created.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

TaskIMailFolder
The created folder.
Remarks
Asynchronously creates a new subfolder with the given name.
See Also