Table of Contents

Method DeclareAsync

Namespace
MailFathom.Application.Folders
Assembly
MailFathom.Application.dll

DeclareAsync(MailAccountId, MailFolderAlias, RemoteFolderPath, MailFolderSpecialUse?, CancellationToken)

Declares one more folder of the account, at a path the mail server now advertises.

Task<MailFolderDeclarationOutcome> DeclareAsync(MailAccountId accountId, MailFolderAlias folderAlias, RemoteFolderPath path, MailFolderSpecialUse? role, CancellationToken cancellationToken)

Parameters

accountId MailAccountId

The account.

folderAlias MailFolderAlias

The alias to declare it under, which nothing afterwards changes.

path RemoteFolderPath

The path the server advertises the folder at.

role MailFolderSpecialUse?

The role the folder plays, or null for an ordinary folder.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderDeclarationOutcome>

What the write did.