Share via


DataAnnotationsModelValidatorProvider.RegisterAdapter(Type, Type) 方法

定义

为客户端验证注册适配器。

public:
 static void RegisterAdapter(Type ^ attributeType, Type ^ adapterType);
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

适配器的类型。

适用于