Share via


InheritanceService.GetInheritanceAttribute(IComponent) Metodo

Definizione

Ottiene l'attributo di ereditarietà del componente specificato.

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

Parametri

component
IComponent

Componente per il quale recuperare l'attributo di ereditarietà.

Restituisce

Oggetto InheritanceAttribute che descrive il livello di ereditarietà da cui il componente deriva.

Implementazioni

Commenti

Se il componente non è ereditato, questo metodo restituisce il valore NotInherited. In caso contrario, restituisce l'attributo di ereditarietà per questo componente.

Si applica a

Vedi anche