Compartilhar via


ModelValidator Constructor

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

'Declaration
Protected Sub New ( _
    metadata As ModelMetadata, _
    controllerContext As ControllerContext _
)
protected ModelValidator(
    ModelMetadata metadata,
    ControllerContext controllerContext
)
protected:
ModelValidator(
    ModelMetadata^ metadata, 
    ControllerContext^ controllerContext
)

Parameters

See Also

Reference

ModelValidator Class

System.Web.Mvc Namespace