Table of Contents

Method Create

Namespace
MailFathom.Domain.Folders
Assembly
MailFathom.Domain.dll

Create(string)

Creates an alias from configuration-owned text.

public static MailFolderAlias Create(string value)

Parameters

value string

The configured alias.

Returns

MailFolderAlias

A validated alias, trimmed and upper-cased.

Remarks

Casing is normalized rather than compared away, so the same alias is one value everywhere it is read, written, or queried — including in a database whose collation MailFathom does not control. Upper case is the canonical form because it round-trips in every culture, which is also why an operator who recased an alias in configuration does not silently create a second binding of it.

Exceptions

ArgumentException

Thrown when value is blank or contains a control character.