ViewComponentAttribute ViewComponentAttribute ViewComponentAttribute 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
type ViewComponentAttribute = class
    inherit Attribute
Public Class ViewComponentAttribute
Inherits Attribute
Inheritance
ViewComponentAttributeViewComponentAttributeViewComponentAttributeViewComponentAttribute
Attributes

Constructors

ViewComponentAttribute() ViewComponentAttribute() ViewComponentAttribute() ViewComponentAttribute()

Properties

Name Name Name 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