Table of Contents

Method Create

Namespace
MailFathom.Domain.Contacts
Assembly
MailFathom.Domain.dll

Create(string)

Creates a search from text a caller supplied.

public static ContactSearch Create(string value)

Parameters

value string

The text to look somebody up by.

Returns

ContactSearch

The validated search.

Remarks

Blank text is refused rather than read as the whole book, because a caller that wants the whole book asks for it by naming no search at all: reading a blank one as "everything" would turn a mistyped lookup into a walk of every person this deployment holds.

Exceptions

ArgumentException

Thrown when value is blank, longer than MaximumLength, or carries a character that renders as nothing.