ModelClientValidationRangeRule Constructor
Initializes a new instance of the ModelClientValidationRangeRule class.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub New ( _
errorMessage As String, _
minValue As Object, _
maxValue As Object _
)
public ModelClientValidationRangeRule(
string errorMessage,
Object minValue,
Object maxValue
)
public:
ModelClientValidationRangeRule(
String^ errorMessage,
Object^ minValue,
Object^ maxValue
)
Parameters
- errorMessage
Type: System.String
The error message.
- minValue
Type: System.Object
The minimum value.
- maxValue
Type: System.Object
The maximum value.
Remarks
The constructor sets the error message, the minimum and maximum validation parameters, and the validation type. The validation type is set to the string "range".