Table of Contents

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

account MailAccountId

The account, by its generated identifier.

folderAlias MailFolderAlias

The folder.

parentAlias MailFolderAlias?

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

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderActOutcome>

The moved folder, or the refusal.