Поделиться через


DataAnnotationsModelValidator<TAttribute> 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 TAttribute _
)
public DataAnnotationsModelValidator(
    ModelMetadata metadata,
    ControllerContext context,
    TAttribute attribute
)
public:
DataAnnotationsModelValidator(
    ModelMetadata^ metadata, 
    ControllerContext^ context, 
    TAttribute attribute
)

Parameters

  • attribute
    Type: TAttribute
    The validation attribute for the model.

See Also

Reference

DataAnnotationsModelValidator<TAttribute> Class

System.Web.Mvc Namespace