Method MoveAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
MoveAsync(MailAccountId, MailFolderAlias, MailFolderAlias?, CancellationToken)
Moves a folder, with everything beneath it, and points its declaration at the new path.
public Task<MailFolderActOutcome> MoveAsync(MailAccountId account, MailFolderAlias folderAlias, MailFolderAlias? parentAlias, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account, by its generated identifier.
folderAliasMailFolderAliasThe folder.
parentAliasMailFolderAlias?The folder to move it beneath, or null for the top of the hierarchy.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderActOutcome>
The moved folder, or the refusal.