ValidationRuleActivatorCreateValidationRule Method (String) |
Creates a new instance of the
ValidationRule specified by its definition with default property values.
Namespace: Kentico.Forms.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
ExceptionsException | Condition |
---|
ArgumentNullException | Thrown when validationRuleIdentifier is null or empty. |
InvalidOperationException | Thrown when ValidationRule with given validationRuleIdentifier is not registered in the system. |
See Also