Class MinLengthValidationRuleAttribute
- Namespace
- Kentico.Xperience.Admin.Base.FormAnnotations
- Assembly
- Kentico.Xperience.Admin.Base.Shared.dll
Validation rule attribute to validate whether value satisfies the minimal length limit.
public class MinLengthValidationRuleAttribute : ValidationRuleAttribute
- Inheritance
-
objectAttributeMinLengthValidationRuleAttribute
- Inherited Members
- Extension Methods
Remarks
Error message defined by ErrorMessage supports substitution macro {0} in the error message text. The substitution macro will be replaced by MinLength value;
Constructors
MinLengthValidationRuleAttribute(int)
Creates new instance of MinLengthValidationRuleAttribute.
public MinLengthValidationRuleAttribute(int minLength)
Parameters
minLength
intMaximal allowed length.
Properties
MinLength
Minimal allowed length.
public int MinLength { get; }
Property Value
- int