InheritanceService.GetInheritanceAttribute(IComponent) 方法

定义

获取指定组件的继承特性。

public:
 virtual 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
override this.GetInheritanceAttribute : System.ComponentModel.IComponent -> System.ComponentModel.InheritanceAttribute
Public Function GetInheritanceAttribute (component As IComponent) As InheritanceAttribute

参数

component
IComponent

要为其检索继承特性的组件。

返回

描述此组件的继承级别的 InheritanceAttribute

实现

注解

如果未继承组件,此方法将返回值 NotInherited。 否则,它将返回此组件的继承属性。

适用于

另请参阅