DataAnnotationsModelValidatorProvider.RegisterAdapterFactory 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为验证提供程序注册适配器工厂。
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
属性的类型。
将用于为指定属性创建 ModelValidator 对象的工厂。