ModelClientValidationStringLengthRule Constructor

Visual Studio 2010

Initializes a new instance of the ModelClientValidationStringLengthRule class.

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

'Declaration
Public Sub New ( _
	errorMessage As String, _
	minimumLength As Integer, _
	maximumLength As Integer _
)

Parameters

errorMessage
Type: System.String
The validation error message.
minimumLength
Type: System.Int32
The minimum length of the string.
maximumLength
Type: System.Int32
The maximum length of the string.

The constructor sets the base class validation type to the string "stringLength".

Community Additions

ADD
Show: