Freigeben über


DataAnnotationsModelValidatorProvider.RegisterAdapter(Type, Type) Methode

Definition

Registriert einen Adapter für die clientseitige Validierung.

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)

Parameter

attributeType
Type

Der Typ des Validierungsattributs.

adapterType
Type

Der Typ des Adapters.

Gilt für