Defines a constraint on an integral input value, such that it must be a member of a specific set of values.
This class is used to restrict the values of an input value. The object contains a list of integer values. During validation, the Validate method is called. If the input does not match any of the items in the list, then a CXlRuntimeException is raised, and the function exits.
The template argument for the constraint object should match the type of the argument
being validated. For example, a input of type
is validated by a constraint of type