ValidationRuleConfiguration Constructor (String, ValidationRule) |
Namespace: Kentico.Forms.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntaxpublic ValidationRuleConfiguration(
string identifier,
ValidationRule validationRule
)
Parameters
- identifier
- Type: SystemString
Identifies type of the validationRule. - validationRule
- Type: Kentico.Forms.Web.MvcValidationRule
Validation rule.
ExceptionsException | Condition |
---|
ArgumentException | Thrown when identifier is null or empty. |
ArgumentNullException | Thrown when validationRule is null. |
See Also