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。 否則,它會傳回這個元件的繼承屬性。

適用於

另請參閱