Click or drag to resize
ValidationRuleConfiguration Constructor (String, ValidationRule)
Initializes a new instance of the ValidationRuleConfiguration class.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public ValidationRuleConfiguration(
	string identifier,
	ValidationRule validationRule
)

Parameters

identifier
Type: SystemString
Identifies type of the validationRule.
validationRule
Type: Kentico.Forms.Web.MvcValidationRule
Validation rule.
Exceptions
ExceptionCondition
ArgumentExceptionThrown when identifier is null or empty.
ArgumentNullExceptionThrown when validationRule is null.
See Also