Table of Contents

Method Create

Namespace
MailFathom.Domain.Accounts
Assembly
MailFathom.Domain.dll

Create(string)

Creates a display name from configuration-owned text.

public static MailAccountDisplayName Create(string value)

Parameters

value string

The configured display name.

Returns

MailAccountDisplayName

A validated display name, trimmed and otherwise as written.

Remarks

Control characters are refused because the value is published in every result that names its account and is written to operator-facing messages; a newline in it would let configuration write arbitrary lines into both.

Exceptions

ArgumentException

Thrown when value is blank, longer than MaximumLength, or contains a control character.