ModelValidator Constructor (ModelMetadata, ControllerContext)

 

Called from constructors in derived classes to initialize the ModelValidator class.

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

protected ModelValidator(
	ModelMetadata metadata,
	ControllerContext controllerContext
)

Parameters

metadata
Type: System.Web.Mvc.ModelMetadata

The metadata.

controllerContext
Type: System.Web.Mvc.ControllerContext

The controller context.

Return to top
Show: