Table of Contents

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
object
Attribute
MaximumIntegerValueValidationRuleAttribute
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)

public MaximumIntegerValueValidationRuleAttribute(int maxValue)

Parameters

maxValue int

Maximum value.

Properties

MaxValue

Maximum value.

public int MaxValue { get; }

Property Value

int