IInheritanceService.GetInheritanceAttribute(IComponent) Metodo

Definizione

Ottiene l'attributo di ereditarietà per il componente specificato.

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

Parametri

component
IComponent

Oggetto IComponent per il quale recuperare l'attributo di ereditarietà.

Restituisce

Istanza di InheritanceAttribute che descrive il livello di ereditarietà del componente specificato.

Commenti

Se il componente è stato profilato dal AddInheritedComponents metodo , questo metodo restituisce il valore InheritanceAttribute.NotInherited. In caso contrario, restituisce l'attributo di ereditarietà per questo componente.

È necessario chiamare AddInheritedComponents sul componente specificato o su un elemento padre del componente specificato prima di tentare di ottenere un InheritanceAttribute oggetto che rifletta il livello di ereditarietà del componente specificato.

Si applica a

Vedi anche