Method RenameAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
RenameAsync(MailAccountId, MailFolderAlias, string?, CancellationToken)
Renames a folder on the mail server and points its declaration at the new path.
public Task<MailFolderActOutcome> RenameAsync(MailAccountId account, MailFolderAlias folderAlias, string? name, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account, by its generated identifier.
folderAliasMailFolderAliasThe folder.
namestringThe new name as supplied.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderActOutcome>
The renamed folder, or the refusal.