Export (0) Print
Expand All

DataAnnotationsModelValidator<TAttribute> Constructor

.NET Framework 4

Initializes a new instance of the DataAnnotationsModelValidator class.

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

public DataAnnotationsModelValidator(
	ModelMetadata metadata,
	ControllerContext context,
	TAttribute attribute
)

Parameters

metadata
Type: System.Web.Mvc.ModelMetadata
The metadata for the model.
context
Type: System.Web.Mvc.ControllerContext
The controller context for the model.
attribute
Type: TAttribute
The validation attribute for the model.

Community Additions

ADD
Show:
© 2014 Microsoft