Click or drag to resize
MimeKit

IMailFolderRenameAsync Method

Asynchronously rename the folder.

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 4.3.0
Syntax
C#
Task RenameAsync(
	IMailFolder parent,
	string name,
	CancellationToken cancellationToken = default
)

Parameters

parent  IMailFolder
The new parent folder.
name  String
The new name of the folder.
cancellationToken  CancellationToken  (Optional)
The cancellation token.

Return Value

Task
An asynchronous task context.
Remarks
Asynchronously renames the folder.
See Also