Method TryCreate
- Namespace
- MailFathom.Domain.Calendar
- Assembly
- MailFathom.Domain.dll
TryCreate(string?, out ImportedCalendarEventUid)
Reads an identifier out of a file, refusing one that is blank, too long, or carrying a character that renders as nothing.
public static bool TryCreate(string? value, out ImportedCalendarEventUid uid)
Parameters
valuestringThe identifier as the file supplied it.
uidImportedCalendarEventUidThe identifier, when it is one.
Returns
Remarks
The file is untrusted input, and this value is answered back to whoever imported it in the report naming what was skipped — so a control character or a bidirectional override is refused here for the same reason a title's is, and the entry carrying one is reported as an entry that could not be read. MailFathom.Domain.Calendar.CalendarText holds which characters those are.