DataAnnotationsModelValidator Constructor (ModelMetadata, ModelBindingExecutionContext, ValidationAttribute)

.NET Framework (current version)
 

Initializes a new instance of the DataAnnotationsModelValidator class.

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

public DataAnnotationsModelValidator(
	ModelMetadata metadata,
	ModelBindingExecutionContext context,
	ValidationAttribute attribute
)

Parameters

metadata
Type: System.Web.ModelBinding.ModelMetadata

The metadata.

context
Type: System.Web.ModelBinding.ModelBindingExecutionContext

The execution context.

attribute
Type: System.ComponentModel.DataAnnotations.ValidationAttribute

The validation attribute.

.NET Framework
Available since 4.5
Return to top
Show: