Table of Contents

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

name string

The name read from a configuration key or a serialized document.

trigger MailRuleTrigger

The trigger when the name is one this set holds; otherwise the unspecified default.

Returns

bool

true when the name is a declared trigger; otherwise false.

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.