Share via


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
ModelMetadata

Return Value

Applies to