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
accountIdMailAccountIdThe account.
folderAliasMailFolderAliasThe alias to declare it under, which nothing afterwards changes.
pathRemoteFolderPathThe path the server advertises the folder at.
roleMailFolderSpecialUse?The role the folder plays, or null for an ordinary folder.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderDeclarationOutcome>
What the write did.