Table of Contents

Class MinimumDecimalValueValidationRuleAttribute

Namespace
Kentico.Xperience.Admin.Base.FormAnnotations
Assembly
Kentico.Xperience.Admin.Base.Shared.dll

Validation rule attribute to validate whether value satisfies the minimum value.

public sealed class MinimumDecimalValueValidationRuleAttribute : ValidationRuleAttribute
Inheritance
object
Attribute
MinimumDecimalValueValidationRuleAttribute
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 MinValue value;

Constructors

MinimumDecimalValueValidationRuleAttribute(double)

public MinimumDecimalValueValidationRuleAttribute(double minValue)

Parameters

minValue double

Minimal value.

Remarks

This constructor rounds value to 15 significant digits using rounding to nearest. This is done even if the number has more than 15 digits and the less significant digits are zero.

Exceptions

OverflowException

minValue is greater than decimal.MaxValue or less than decimal.MinValue.

Properties

MinValue

Minimal value.

public decimal MinValue { get; }

Property Value

decimal