Partager via


DataAnnotationsModelValidatorProvider.RegisterAdapter(Type, Type) Méthode

Définition

Inscrit un adaptateur pour la validation côté client.

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)

Paramètres

attributeType
Type

Le type de l’attribut de validation.

adapterType
Type

Type de l'adaptateur.

S’applique à