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

뷰 구성 요소의 이름을 가져오거나 설정합니다. 뷰 구성 요소 기본 클래스와 연결된 특성에 이름을 제공하지 마세요.

적용 대상