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

ビュー コンポーネントの名前を取得または設定します。 ビュー コンポーネントの基底クラスに関連付けられている属性に名前を指定しないでください。

適用対象