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)

public ModelClientValidationStringLengthRule(
	string errorMessage,
	int minimumLength,
	int maximumLength
)

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: