Table of Contents

Method TryCreate

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

TryCreate(string?, out MailFolderAlias)

Reads an alias a caller outside this system wrote, without raising on text that is not one.

public static bool TryCreate(string? value, out MailFolderAlias alias)

Parameters

value string

The text the caller wrote.

alias MailFolderAlias

The alias when the text is one; otherwise the struct default.

Returns

bool

true when the text is an alias.

Remarks

Create(string) raises because configuration is refused rather than negotiated with, which is the wrong shape at a boundary an operator types into: an administrative route reading a request body owes a stated refusal rather than a failure the process reports as its own. Both admit exactly the same text, so an alias that reaches one reaches the other.