Sdílet prostřednictvím


ViewComponentContextAttribute Třída

Definice

Určuje, že při vytváření komponenty zobrazení má být nastavena vlastnost kontroleru s aktuální ViewComponentContext . Vlastnost musí mít metodu veřejné sady.

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
Dědičnost
ViewComponentContextAttribute
Atributy

Konstruktory

ViewComponentContextAttribute()

Určuje, že při vytváření komponenty zobrazení má být nastavena vlastnost kontroleru s aktuální ViewComponentContext . Vlastnost musí mít metodu veřejné sady.

Platí pro