Freigeben über


ModelClientValidationStringLengthRule Constructor

Initializes a new instance of the ModelClientValidationStringLengthRule class.

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

Syntax

'Declaration
Public Sub New ( _
    errorMessage As String, _
    minimumLength As Integer, _
    maximumLength As Integer _
)
public ModelClientValidationStringLengthRule(
    string errorMessage,
    int minimumLength,
    int maximumLength
)
public:
ModelClientValidationStringLengthRule(
    String^ errorMessage, 
    int minimumLength, 
    int maximumLength
)

Parameters

  • minimumLength
    Type: System.Int32
    The minimum length of the string.
  • maximumLength
    Type: System.Int32
    The maximum length of the string.

Remarks

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

See Also

Reference

ModelClientValidationStringLengthRule Class

System.Web.Mvc Namespace