Click or drag to resize
RegularExpressionValidationRule Class
Represents regular expression validation rule.
Inheritance Hierarchy
SystemObject
  Kentico.Forms.Web.MvcValidationRule
    Kentico.Forms.Web.MvcValidationRuleString
      Kentico.Forms.Web.MvcRegularExpressionValidationRule

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
[SerializableAttribute]
public class RegularExpressionValidationRule : ValidationRule<string>

The RegularExpressionValidationRule type exposes the following members.

Constructors
  NameDescription
Public methodRegularExpressionValidationRule
Top
Properties
  NameDescription
Public propertyErrorMessage
Gets or sets the error message to be shown when the form component's value is invalid.
(Inherited from ValidationRule.)
Public propertyInstanceIdentifier
Gets or sets identifier of the validation rule instance.
(Inherited from ValidationRule.)
Public propertyRegularExpression
Gets or sets the regular expression used to validate form component's value.
Public propertyTitle
Gets a title for this instance of validation rule.
(Inherited from ValidationRule.)
Top
Methods
See Also