DataAnnotationsModelValidatorProvider.RegisterValidatableObjectAdapter 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 fournir la validation d'objet.
public static void RegisterValidatableObjectAdapter(Type modelType, Type adapterType);
static member RegisterValidatableObjectAdapter : Type * Type -> unit
Public Shared Sub RegisterValidatableObjectAdapter (modelType As Type, adapterType As Type)
Paramètres
- modelType
- Type
Type du modèle.
- adapterType
- Type
Type de l'adaptateur.