DataAnnotationsValidatableObjectAdapterFactory 委托

定义

表示验证器的出厂设置,其基于 IValidatableObject 接口。Represents a factory for validators that are based on the IValidatableObject interface.

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

返回值

ModelValidator
继承
DataAnnotationsValidatableObjectAdapterFactory

扩展方法

GetMethodInfo(Delegate)

获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate.

适用于