DataAnnotationsModelValidatorProvider.RegisterAdapter(Type, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.