Method CreateAsync
- Namespace
- MailFathom.Application.Folders
- Assembly
- MailFathom.Application.dll
CreateAsync(MailAccountId, MailFolderAlias?, string?, MailFolderSpecialUse?, CancellationToken)
Creates a folder on the mail server and declares it.
public Task<MailFolderActOutcome> CreateAsync(MailAccountId account, MailFolderAlias? parentAlias, string? name, MailFolderSpecialUse? role, CancellationToken cancellationToken)
Parameters
accountMailAccountIdThe account, by its generated identifier.
parentAliasMailFolderAlias?The folder to create it beneath, or null for the top of the hierarchy.
namestringThe name as supplied, which a creation naming a role ignores.
roleMailFolderSpecialUse?The role the folder is to play, or null for an ordinary folder.
cancellationTokenCancellationTokenPropagates caller cancellation.
Returns
- Task<MailFolderActOutcome>
The created folder, or the refusal.