ModelClientValidationStringLengthRule(String, Int32, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.