DataAnnotationsValidatableObjectAdapterFactory Délégué
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.
Fournit une fabrique pour les validateurs basés sur IValidatableObject.
public delegate System.Web.Mvc.ModelValidator DataAnnotationsValidatableObjectAdapterFactory(ModelMetadata metadata, ControllerContext context);
type DataAnnotationsValidatableObjectAdapterFactory = delegate of ModelMetadata * ControllerContext -> ModelValidator
Public Delegate Function DataAnnotationsValidatableObjectAdapterFactory(metadata As ModelMetadata, context As ControllerContext) As ModelValidator
Paramètres
- metadata
- ModelMetadata
- context
- ControllerContext
Valeur renvoyée
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Envoyer et afficher des commentaires pour