ViewComponentAttribute Class

Definition

Indicates the class and all subclasses are view components. Optionally specifies a view component's name. If defining a base class for multiple view components, associate this attribute with that base.

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
Inheritance
ViewComponentAttribute
Attributes

Constructors

ViewComponentAttribute()

Properties

Name

Gets or sets the name of the view component. Do not supply a name in an attribute associated with a view component base class.

Applies to