ModelBinderAttribute Constructeurs
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.
Surcharges
ModelBinderAttribute() |
Initialise une nouvelle instance de ModelBinderAttribute. |
ModelBinderAttribute(Type) |
Initialise une nouvelle instance de ModelBinderAttribute. |
ModelBinderAttribute()
Initialise une nouvelle instance de ModelBinderAttribute.
public:
ModelBinderAttribute();
public ModelBinderAttribute ();
Public Sub New ()
S’applique à
ModelBinderAttribute(Type)
Initialise une nouvelle instance de ModelBinderAttribute.
public:
ModelBinderAttribute(Type ^ binderType);
public ModelBinderAttribute (Type binderType);
new Microsoft.AspNetCore.Mvc.ModelBinderAttribute : Type -> Microsoft.AspNetCore.Mvc.ModelBinderAttribute
Public Sub New (binderType As Type)
Paramètres
- binderType
- Type
Type qui implémente IModelBinder.
Remarques
Sous-classez cet attribut et définissez BindingSource si Custom n’est pas correct pour le spécifié binderType
.
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour