DataAnnotationsModelValidationFactory DataAnnotationsModelValidationFactory DataAnnotationsModelValidationFactory Delegate

Definition

Represents the method that creates a DataAnnotationsModelValidatorProvider instance.

public delegate System.Web.Mvc.ModelValidator DataAnnotationsModelValidationFactory(ModelMetadata metadata, ControllerContext context, ValidationAttribute attribute);
type DataAnnotationsModelValidationFactory = delegate of ModelMetadata * ControllerContext * ValidationAttribute -> ModelValidator
Public Delegate Function DataAnnotationsModelValidationFactory(metadata As ModelMetadata, context As ControllerContext, attribute As ValidationAttribute) As ModelValidator 
Parameters
metadata
context
attribute
Return Value
System.Web.Mvc.ModelValidator
Inheritance
DataAnnotationsModelValidationFactoryDataAnnotationsModelValidationFactoryDataAnnotationsModelValidationFactory

Applies to