ViewComponentAttribute 類別

定義

指出類別和所有子類別都是檢視元件。 選擇性地指定檢視元件的名稱。 如果為多個檢視元件定義基類,請將此屬性與該基底產生關聯。

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
繼承
ViewComponentAttribute
屬性

建構函式

ViewComponentAttribute()

指出類別和所有子類別都是檢視元件。 選擇性地指定檢視元件的名稱。 如果為多個檢視元件定義基類,請將此屬性與該基底產生關聯。

屬性

Name

取得或設定檢視元件的名稱。 請勿在與檢視元件基類相關聯的屬性中提供名稱。

適用於