Click or drag to resize
MinimumLengthValidationRule Class
Rule validates that user input value is not shorther than specified value.
Inheritance Hierarchy
SystemObject
  Kentico.Forms.Web.MvcValidationRule
    Kentico.Forms.Web.MvcValidationRuleString
      Kentico.Forms.Web.MvcMinimumLengthValidationRule

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

The MinimumLengthValidationRule type exposes the following members.

Constructors
  NameDescription
Public methodMinimumLengthValidationRule
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 propertyMinimumLength
Minimum length user input is validated against.
Public propertyTitle
Gets a title for this instance of validation rule.
(Inherited from ValidationRule.)
Top
Methods
See Also