InheritanceService.GetInheritanceAttribute(IComponent) 方法

定義

取得指定元件的繼承屬性。Gets the inheritance attribute of the specified component.

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

要擷取繼承屬性的元件。The component to retrieve the inheritance attribute for.

傳回

InheritanceAttribute,描述此元件源自於哪一個繼承層級。An InheritanceAttribute that describes the level of inheritance that this component comes from.

實作

備註

如果未繼承此元件,這個方法會傳回 NotInherited的值。If the component is not inherited, this method returns the value NotInherited. 否則,它會傳回此元件的繼承屬性。Otherwise, it returns the inheritance attribute for this component.

適用於

另請參閱