InheritanceService.GetInheritanceAttribute(IComponent) Metoda

Definicja

Pobiera atrybut dziedziczenia określonego składnika.

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

Składnik do pobierania atrybutu dziedziczenia dla.

Zwraca

Element InheritanceAttribute opisujący poziom dziedziczenia, z którego pochodzi ten składnik.

Implementuje

Uwagi

Jeśli składnik nie jest dziedziczony, ta metoda zwraca wartość NotInherited. W przeciwnym razie zwraca atrybut dziedziczenia dla tego składnika.

Dotyczy

Zobacz też