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

MaxAttribute() public method

Creates a new instance of MaxAttribute
public MaxAttribute ( double max ) : System
max double
return System
        public MaxAttribute(double max)
            : this("The field {0} must be less than or equal to {1}.", max)
        {
        }

Same methods

MaxAttribute::MaxAttribute ( int max ) : System
MaxAttribute::MaxAttribute ( string errorMessage, double max ) : System
MaxAttribute::MaxAttribute ( string errorMessage, int max ) : System