DataAnnotationsModelValidatorProvider.RegisterAdapterFactory 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 une fabrique d'adaptateur pour le fournisseur de validation.
public static void RegisterAdapterFactory(Type attributeType, System.Web.Mvc.DataAnnotationsModelValidationFactory factory);
static member RegisterAdapterFactory : Type * System.Web.Mvc.DataAnnotationsModelValidationFactory -> unit
Public Shared Sub RegisterAdapterFactory (attributeType As Type, factory As DataAnnotationsModelValidationFactory)
Paramètres
- attributeType
- Type
Type de l'attribut.
Fabrique qui sera utilisée pour créer l’objet ModelValidator pour l’attribut spécifié.