Share via


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

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".

See Also

Reference

ModelClientValidationRangeRule Class

System.Web.Mvc Namespace