次の方法で共有


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

アダプターの型。

適用対象