StateMachineTemplateState Method (String) |
Namespace: StaMa
Exception | Condition |
---|---|
ArgumentNullException | The name is null or empty. |
ArgumentOutOfRangeException | The name is not a valid identifier for a State: The identifier of a State must start with a character followed by nonspace characters or digits. |
ArgumentOutOfRangeException | The name is not a unique: A State with the same name already exists within the StateMachineTemplate instance. |
StateMachineException | A syntax error was detected with this or the preceeding Region, EndRegion, State, EndState or Transition statements. |
This method must be used paired with an StateMachineTemplate.EndState statement.
An enclosed StateMachineTemplate.Transition Overload statement adds a Transition emanating from this State.
Each pair of enclosed StateMachineTemplate.Region(String, Boolean) ... EndRegion statements will add a hierarchical sub-Region to the State.