共用方式為


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

配接器的型別。

適用於