| IMailFolderRenameAsync Method |
Asynchronously rename the folder.
Namespace: MailKitAssembly: MailKit (in MailKit.dll) Version: 4.7.1
Syntax 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
TaskAn asynchronous task context.
Remarks
Asynchronously renames the folder.
See Also