ViewContextAttribute Classe
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.
Spécifie qu’une propriété tag helper doit être définie avec le actuel ViewContext lors de la création du tag helper. La propriété doit avoir une méthode set publique.
public ref class ViewContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class ViewContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ViewContextAttribute = class
inherit Attribute
Public Class ViewContextAttribute
Inherits Attribute
- Héritage
-
ViewContextAttribute
- Attributs
Constructeurs
ViewContextAttribute() |
Spécifie qu’une propriété tag helper doit être définie avec le actuel ViewContext lors de la création du tag helper. La propriété doit avoir une méthode set publique. |
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