IInheritanceService.GetInheritanceAttribute(IComponent) Metoda

Definicja

Pobiera atrybut dziedziczenia dla określonego składnika.

public:
 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
Public Function GetInheritanceAttribute (component As IComponent) As InheritanceAttribute

Parametry

component
IComponent

Element IComponent , dla którego ma być pobierany atrybut dziedziczenia.

Zwraca

Wystąpienie tego InheritanceAttribute elementu opisuje poziom dziedziczenia określonego składnika.

Uwagi

Jeśli składnik został profilowany przez metodę AddInheritedComponents , ta metoda zwraca wartość InheritanceAttribute.NotInherited. W przeciwnym razie zwraca atrybut dziedziczenia dla tego składnika.

Przed podjęciem próby uzyskania InheritanceAttribute elementu odzwierciedlającego poziom dziedziczenia określonego składnika należy wywołać AddInheritedComponents określony składnik lub element nadrzędny określonego składnika.

Dotyczy

Zobacz też