IInheritanceService.GetInheritanceAttribute(IComponent) 메서드

정의

지정된 구성 요소의 상속 특성을 가져옵니다.

public:
 System::ComponentModel::InheritanceAttribute ^ GetInheritanceAttribute(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.InheritanceAttribute GetInheritanceAttribute (System.ComponentModel.IComponent component);
abstract member GetInheritanceAttribute : System.ComponentModel.IComponent -> System.ComponentModel.InheritanceAttribute
Public Function GetInheritanceAttribute (component As IComponent) As InheritanceAttribute

매개 변수

component
IComponent

상속 특성을 검색할 IComponent입니다.

반환

지정된 구성 요소의 상속 수준을 설명하는 InheritanceAttribute의 인스턴스입니다.

설명

구성 요소가 메서드에 의해 AddInheritedComponents 프로파일된 경우 이 메서드는 값을 InheritanceAttribute.NotInherited반환합니다. 그렇지 않으면 이 구성 요소에 대한 상속 특성을 반환합니다.

지정된 구성 요소의 상속 수준을 반영하는 을 가져오기 InheritanceAttribute 전에 지정된 구성 요소 또는 지정된 구성 요소의 부모를 호출 AddInheritedComponents 해야 합니다.

적용 대상

추가 정보