ModelClientValidationRequiredRule Constructor

Initializes a new instance of the ModelClientValidationRule class.

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

public ModelClientValidationRequiredRule(
	string errorMessage
)

Parameters

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