DataAnnotationsModelValidatorProvider.RegisterAdapterFactory 方法

定义

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

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

参数

attributeType
Type

属性的类型。

factory
DataAnnotationsModelValidationFactory

将用于为指定属性创建 ModelValidator 对象的工厂。

适用于