ValidationRuleDefinition Constructor |
Namespace: Kentico.Forms.Web.Mvc
public ValidationRuleDefinition( string identifier, Type validationRuleType, string name )
Exception | Condition |
---|---|
ArgumentException | Specified identifier is null, an empty string or identifier does not specify a valid code name. -or- Specified validationRuleType does not inherit ValidationRule, is an abstract type or is a generic type which is not constructed. -or- Specified name is null or an empty string. |
ArgumentNullException | Thrown when validationRuleType is null. |