Table of Contents

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

value string

The identifier as the file supplied it.

uid ImportedCalendarEventUid

The identifier, when it is one.

Returns

bool

true when value is an identifier.

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.