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

轉接器的種類。

適用於