Method Create
- Namespace
- MailFathom.Domain.Contacts
- Assembly
- MailFathom.Domain.dll
Create(string)
Creates a note from text an owner supplied.
public static ContactNote Create(string value)
Parameters
valuestringThe note to record.
Returns
- ContactNote
A validated note, trimmed and otherwise as written.
Remarks
Blank text is refused rather than stored as an empty note, because a contact without a note holds no note at all: two ways to say the same absence would leave every reader deciding which one it was looking at.
Exceptions
- ArgumentException
Thrown when
valueis blank, longer than MaximumLength, or carries a character that does not render as part of the note, other than a line break or a tab.