Table of Contents

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

account MailAccountId

The caller's account.

folderId LocalMailFolderId

The folder.

parentId LocalMailFolderId?

The folder to move it beneath, or null for the top of the hierarchy.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<LocalMailFolderEditOutcome>

The moved folder, or the refusal.

Exceptions

PrincipalNotAuthorizedException

Thrown when the caller does not hold mailfathom.mail.folders.write.