Share via


DataAnnotationsModelValidatorProvider.RegisterAdapter(Type, Type) 方法

定义

注册适配器以提供客户端验证。

public static void RegisterAdapter (Type attributeType, Type adapterType);
static member RegisterAdapter : Type * Type -> unit
Public Shared Sub RegisterAdapter (attributeType As Type, adapterType As Type)

参数

attributeType
Type

验证特性的类型。

adapterType
Type

适配器的类型。

适用于