Method MoveAsync
- Namespace
- MailFathom.Application.Folders.Local
- Assembly
- MailFathom.Application.dll
MoveAsync(MailAccountId, LocalMailFolderId, LocalMailFolderId?, CancellationToken)
Moves a folder, with everything beneath it, to another place in the hierarchy.
public Task<LocalMailFolderEditOutcome> MoveAsync(MailAccountId account, LocalMailFolderId folderId, LocalMailFolderId? parentId, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe caller's account.
folderIdLocalMailFolderIdThe folder.
parentIdLocalMailFolderId?The folder to move it beneath, or null for the top of the hierarchy.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<LocalMailFolderEditOutcome>
The moved folder, or the refusal.
Exceptions
- PrincipalNotAuthorizedException
Thrown when the caller does not hold
mailfathom.mail.folders.write.