Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DataAnnotationsModelValidator Constructor

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,
	ValidationAttribute 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: System.ComponentModel.DataAnnotations.ValidationAttribute

The validation attribute for the model.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.