DataAnnotationsValidatableObjectAdapterFactory 委托

定义

表示验证器的出厂设置,其基于 IValidatableObject 接口。

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

参数

metadata
ModelMetadata

模型元数据。

context
ModelBindingExecutionContext

上下文。

返回值

ModelValidator

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。

适用于