DataAnnotationsModelValidatorProvider.RegisterAdapterFactory 方法

定义

为验证提供程序注册适配器工厂。

public:
 static void RegisterAdapterFactory(Type ^ attributeType, System::Web::ModelBinding::DataAnnotationsModelValidationFactory ^ factory);
public static void RegisterAdapterFactory (Type attributeType, System.Web.ModelBinding.DataAnnotationsModelValidationFactory factory);
static member RegisterAdapterFactory : Type * System.Web.ModelBinding.DataAnnotationsModelValidationFactory -> unit
Public Shared Sub RegisterAdapterFactory (attributeType As Type, factory As DataAnnotationsModelValidationFactory)

参数

attributeType
Type

属性的类型。

factory
DataAnnotationsModelValidationFactory

将用于创建指定特性的验证程序对象的工厂。

适用于