Method TryParseName
- Namespace
- MailFathom.Application.Rules
- Assembly
- MailFathom.Application.dll
TryParseName(string?, out MailRuleTrigger)
Parses a declared name back into the trigger it names.
public static bool TryParseName(string? name, out MailRuleTrigger trigger)
Parameters
namestringThe name read from a configuration key or a serialized document.
triggerMailRuleTriggerThe trigger when the name is one this set holds; otherwise the unspecified default.
Returns
Remarks
Surrounding whitespace is ignored and case is not compared, which is how the configuration binder already reads every other closed vocabulary this deployment declares. A name this set does not hold is refused rather than reconstructed, because a trigger nothing runs is unknown rather than new.