Class MinimumIntValueValidationRule
Rule validates that user input value is not lower than specified value. Variant for int value types.
[Obsolete("This is a legacy validation rule for form fields that will eventually become unsupported. Implement migration to preserve validation rule configurations.")]
public class MinimumIntValueValidationRule : ValidationRule<int>
- Inheritance
-
objectValidationRule<int>MinimumIntValueValidationRule
- Inherited Members
- Extension Methods
Constructors
MinimumIntValueValidationRule()
public MinimumIntValueValidationRule()
Properties
MinimumValue
Minimum value user input is validated against.
[EditingComponent("Kentico.IntInput", Label = "{$kentico.formbuilder.validationrule.minimumvalue.minimumvalue.label$}")]
[Required]
public int MinimumValue { get; set; }
Property Value
- int
Methods
GetTitle()
Gets a title for this instance of validation rule such as 'Minimum value is 100'.
public override string GetTitle()
Returns
- string
Returns text describing the validation rule.
Validate(int)
Validates the form component's value and returns true if it is greater or equal to the MinimumValue.
protected override bool Validate(int value)
Parameters
valueintValue of the form component.
Returns
- bool
trueif the value is valid, otherwise false.