Compartilhar via


DataAnnotationsModelValidator Constructor

Initializes a new instance of the DataAnnotationsModelValidator class.

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

Syntax

'Declaration
Public Sub New ( _
    metadata As ModelMetadata, _
    context As ControllerContext, _
    attribute As ValidationAttribute _
)
public DataAnnotationsModelValidator(
    ModelMetadata metadata,
    ControllerContext context,
    ValidationAttribute attribute
)
public:
DataAnnotationsModelValidator(
    ModelMetadata^ metadata, 
    ControllerContext^ context, 
    ValidationAttribute^ attribute
)

Parameters

See Also

Reference

DataAnnotationsModelValidator Class

System.Web.Mvc Namespace