Table of Contents

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

account MailAccountId

The account, by its generated identifier.

parentAlias MailFolderAlias?

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

name string

The name as supplied, which a creation naming a role ignores.

role MailFolderSpecialUse?

The role the folder is to play, or null for an ordinary folder.

cancellationToken CancellationToken

Propagates caller cancellation.

Returns

Task<MailFolderActOutcome>

The created folder, or the refusal.