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)

'Declaration
Public Sub New ( _
	errorMessage As String, _
	minValue As Object, _
	maxValue As Object _
)

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: