Method TryCreate
- Namespace
- MailFathom.Domain.Folders
- Assembly
- MailFathom.Domain.dll
TryCreate(string?, out LocalMailFolderName)
Reads a name, refusing one that is empty, too long, or carries a control character, a format character, or the hierarchy delimiter.
public static bool TryCreate(string? value, out LocalMailFolderName name)
Parameters
valuestringThe name as supplied.
nameLocalMailFolderNameThe name, when it is one.
Returns
- bool
Whether
valueis a name.
Remarks
Format characters — zero-width spaces and joiners, bidirectional overrides — are refused because a name may come from a source server rather than a person, and such a character would make a name look blank, render the rest of a row reversed, or make two siblings look identical while comparing as different.