System.ComponentModel.DataAnnotations.NumericRangeAttribute.NumericRangeAttribute C# (CSharp) Method

NumericRangeAttribute() public method

Creates a new instance of MaxAttribute
public NumericRangeAttribute ( double min, double max ) : System
min double Specifies the minimum value allowed for the data field value.
max double Specifies the maximum value allowed for the data field value.
return System
        public NumericRangeAttribute(double min, double max)
            : this("The field {0} must be between {1} and {2}.", min, max)
        {
        }

Same methods

NumericRangeAttribute::NumericRangeAttribute ( int min, int max ) : System
NumericRangeAttribute::NumericRangeAttribute ( string errorMessage, double min, double max ) : System
NumericRangeAttribute::NumericRangeAttribute ( string errorMessage, int min, int max ) : System