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