Class MaximumIntegerValueValidationRuleAttribute
- Namespace
- Kentico.Xperience.Admin.Base.FormAnnotations
- Assembly
- Kentico.Xperience.Admin.Base.Shared.dll
Validation rule attribute to validate whether value satisfies the maximum value.
public sealed class MaximumIntegerValueValidationRuleAttribute : ValidationRuleAttribute
- Inheritance
-
objectAttributeMaximumIntegerValueValidationRuleAttribute
- 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 MaxValue value;
Constructors
MaximumIntegerValueValidationRuleAttribute(int)
Creates new instance of MaximumIntegerValueValidationRuleAttribute.
public MaximumIntegerValueValidationRuleAttribute(int maxValue)
Parameters
maxValue
intMaximum value.
Properties
MaxValue
Maximum value.
public int MaxValue { get; }
Property Value
- int