Delen via


DataAnnotationsValidatableObjectAdapterFactory Delegate

Definition

Provides a factory for validators that are based on IValidatableObject.

public delegate System.Web.Mvc.ModelValidator DataAnnotationsValidatableObjectAdapterFactory(ModelMetadata metadata, ControllerContext context);
type DataAnnotationsValidatableObjectAdapterFactory = delegate of ModelMetadata * ControllerContext -> ModelValidator
Public Delegate Function DataAnnotationsValidatableObjectAdapterFactory(metadata As ModelMetadata, context As ControllerContext) As ModelValidator 

Parameters

metadata
ModelMetadata

Return Value

Applies to