Method RenameAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
RenameAsync(MailAccountId, string?, string?, CancellationToken)
Renames a folder, leaving it where it is.
public Task<MailFolderActOutcome> RenameAsync(MailAccountId account, string? folderId, string? name, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe caller's account.
folderIdstringThe folder.
namestringThe new name.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderActOutcome>
The renamed folder, or the refusal.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold
mailfathom.mail.folders.writeandmailfathom.mail.read, both of which an act needs.