InheritanceService.GetInheritanceAttribute(IComponent) Metoda

Definice

Získá atribut dědičnosti zadané komponenty.

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

Parametry

component
IComponent

Komponenta pro načtení atributu dědičnosti pro.

Návraty

Hodnota InheritanceAttribute , která popisuje úroveň dědičnosti, ze které tato komponenta pochází.

Implementuje

Poznámky

Pokud komponenta není zděděna, vrátí tato metoda hodnotu NotInherited. V opačném případě vrátí atribut dědičnosti pro tuto komponentu.

Platí pro

Viz také