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)

Syntax

protected ModelValidator(
    ModelMetadata metadata,
    ControllerContext controllerContext
)
protected:
ModelValidator(
    ModelMetadata^ metadata,
    ControllerContext^ controllerContext
)
new : 
        metadata:ModelMetadata *
        controllerContext:ControllerContext -> ModelValidator
Protected Sub New (
    metadata As ModelMetadata,
    controllerContext As ControllerContext
)

Parameters

See Also

ModelValidator Class
System.Web.Mvc Namespace

Return to top