StrictlyLessThanAttribute Constructor
StrictlyLessThanAttribute(Int64, Int32)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Int64.
Declaration
public StrictlyLessThanAttribute(long max, int decimalPlaces = 0)
Parameters
Type | Name | Description |
---|---|---|
Int64 | max | The maximum allowed value. |
Int32 | decimalPlaces | When non-zero, interprets the |
StrictlyLessThanAttribute(Int32, Int32)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Int32.
Declaration
public StrictlyLessThanAttribute(int max, int decimalPlaces = 0)
Parameters
Type | Name | Description |
---|---|---|
Int32 | max | The maximum allowed value. |
Int32 | decimalPlaces | When non-zero, interprets the |
StrictlyLessThanAttribute(Int16)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Int16.
Declaration
public StrictlyLessThanAttribute(short max)
Parameters
Type | Name | Description |
---|---|---|
Int16 | max | The maximum allowed value. |
StrictlyLessThanAttribute(SByte)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type SByte.
Declaration
public StrictlyLessThanAttribute(sbyte max)
Parameters
Type | Name | Description |
---|---|---|
SByte | max | The maximum allowed value. |
StrictlyLessThanAttribute(UInt64)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type UInt64.
Declaration
public StrictlyLessThanAttribute(ulong max)
Parameters
Type | Name | Description |
---|---|---|
UInt64 | max | The maximum allowed value. |
StrictlyLessThanAttribute(UInt32)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type UInt32.
Declaration
public StrictlyLessThanAttribute(uint max)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | max | The maximum allowed value. |
StrictlyLessThanAttribute(UInt16)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type UInt16.
Declaration
public StrictlyLessThanAttribute(ushort max)
Parameters
Type | Name | Description |
---|---|---|
UInt16 | max | The maximum allowed value. |
StrictlyLessThanAttribute(Byte)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Byte.
Declaration
public StrictlyLessThanAttribute(byte max)
Parameters
Type | Name | Description |
---|---|---|
Byte | max | The maximum allowed value. |
StrictlyLessThanAttribute(Double)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Double.
Declaration
public StrictlyLessThanAttribute(double max)
Parameters
Type | Name | Description |
---|---|---|
Double | max | The maximum allowed value. |
StrictlyLessThanAttribute(Single)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Single.
Declaration
public StrictlyLessThanAttribute(float max)
Parameters
Type | Name | Description |
---|---|---|
Single | max | The maximum allowed value. |
StrictlyLessThanAttribute(Decimal)
Initializes a new instance of the StrictlyLessThanAttribute class specifying a maximum value of type Decimal.
Declaration
public StrictlyLessThanAttribute(Decimal max)
Parameters
Type | Name | Description |
---|---|---|
Decimal | max | The maximum allowed value. |