Parameters
- criterionName
- A string that substitutes name variable in error messages to define the criterion.
- level
- An ValidationLevel value representing the moment at which validation will be performed for the criterion.
- compareOperator
- An CompareListOperator value representing the operator used to compare the input component's value with the passed values.
- constantList
- An array of objects of type specified by \"dataType\" representing the values used for the criterion.
- dataType
- An ValidationDataType value representing the expected data type for the criterion.
- requiredField
- true if the input component must contain a value; false otherwise.
- caseSensitive
- true if the criterion is case sensitive; false otherwise.
- trim
- true if whitespace characters should be trimmed from the input component's value before testing with the criterion; false otherwise.
- customMessages
- A CustomValidationMessages object representing the custom messages for this validation criterion. a null reference (Nothing in Visual Basic) is accepted and states that the ValidationProvider.DefaultValidationMessages will be used when validating.