Share via


ModelClientValidationStringLengthRule(String, Int32, Int32) Constructor

Definition

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Initializes a new instance of the ModelClientValidationStringLengthRule class.

public ModelClientValidationStringLengthRule (string errorMessage, int minimumLength, int maximumLength);
new System.Web.Mvc.ModelClientValidationStringLengthRule : string * int * int -> System.Web.Mvc.ModelClientValidationStringLengthRule
Public Sub New (errorMessage As String, minimumLength As Integer, maximumLength As Integer)

Parameters

errorMessage
String

The error message.

minimumLength
Int32

The minimum length of the validation rule.

maximumLength
Int32

The maximum length of the validation rule.

Applies to