InheritanceService.GetInheritanceAttribute(IComponent) Methode

Definition

Ruft das Vererbungsattribut der angegebenen Komponente ab.

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

Parameter

component
IComponent

Die Komponente, für die das Vererbungsattribut abgerufen werden soll.

Gibt zurück

Ein InheritanceAttribute Wert, der die Vererbungsebene beschreibt, von der diese Komponente stammt.

Implementiert

Hinweise

Wenn die Komponente nicht geerbt wird, gibt diese Methode den Wert NotInheritedzurück. Andernfalls wird das Vererbungsattribut für diese Komponente zurückgegeben.

Gilt für:

Weitere Informationen