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

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 MaximumLengthValidationRule : ValidationRule<string>

The MaximumLengthValidationRule type exposes the following members.

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