ViewComponentContextAttribute Klasse

Definition

Gibt an, dass beim Erstellen der Ansichtskomponente eine Controllereigenschaft mit dem aktuellen ViewComponentContext festgelegt werden soll. Die -Eigenschaft muss über eine öffentliche Set-Methode verfügen.

public ref class ViewComponentContextAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)]
public class ViewComponentContextAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Property, AllowMultiple=false, Inherited=true)>]
type ViewComponentContextAttribute = class
    inherit Attribute
Public Class ViewComponentContextAttribute
Inherits Attribute
Vererbung
ViewComponentContextAttribute
Attribute

Konstruktoren

Name Beschreibung
ViewComponentContextAttribute()

Gibt an, dass beim Erstellen der Ansichtskomponente eine Controllereigenschaft mit dem aktuellen ViewComponentContext festgelegt werden soll. Die -Eigenschaft muss über eine öffentliche Set-Methode verfügen.

Gilt für: