Method RenameAsync
- Namespace
- MailFathom.Application.Folders.Local
- Assembly
- MailFathom.Application.dll
RenameAsync(MailAccountId, LocalMailFolderId, string?, CancellationToken)
Renames a folder.
public Task<LocalMailFolderEditOutcome> RenameAsync(MailAccountId account, LocalMailFolderId folderId, string? name, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe caller's account.
folderIdLocalMailFolderIdThe folder.
namestringThe new name as supplied.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<LocalMailFolderEditOutcome>
The renamed folder, or the refusal.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold
mailfathom.mail.folders.write.