ModelClientValidationRangeRule Constructor

Visual Studio 2010

Initializes a new instance of the ModelClientValidationRangeRule class.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

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.

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

Community Additions

ADD
Show: