ViewComponentAttribute Třída

Definice

Označuje třídu a všechny podtřídy jsou komponenty zobrazení. Volitelně určuje název komponenty zobrazení. Pokud definujete základní třídu pro více komponent zobrazení, přidružte tento atribut k tomuto základu.

public ref class ViewComponentAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)]
public class ViewComponentAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=false, Inherited=true)>]
type ViewComponentAttribute = class
    inherit Attribute
Public Class ViewComponentAttribute
Inherits Attribute
Dědičnost
ViewComponentAttribute
Atributy

Konstruktory

ViewComponentAttribute()

Označuje třídu a všechny podtřídy jsou komponenty zobrazení. Volitelně určuje název komponenty zobrazení. Pokud definujete základní třídu pro více komponent zobrazení, přidružte tento atribut k tomuto základu.

Vlastnosti

Name

Získá nebo nastaví název komponenty zobrazení. Do atributu přidruženého k základní třídě komponenty zobrazení nezadáte název.

Platí pro