Share via


ModelClientValidationRequiredRule Constructor

Initializes a new instance of the ModelClientValidationRule class.

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

Syntax

'Declaration
Public Sub New ( _
    errorMessage As String _
)
public ModelClientValidationRequiredRule(
    string errorMessage
)
public:
ModelClientValidationRequiredRule(
    String^ errorMessage
)

Parameters

  • errorMessage
    Type: System.String
    The error message to display when a value for the required field is not provided.

See Also

Reference

ModelClientValidationRequiredRule Class

System.Web.Mvc Namespace