ViewContextAttribute Classe

Définition

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 à