InheritanceService.GetInheritanceAttribute(IComponent) Méthode

Définition

Obtient l'attribut d'héritage du composant spécifié.

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

Paramètres

component
IComponent

Composant pour lequel l'attribut d'héritage doit être récupéré.

Retours

InheritanceAttribute qui décrit le niveau d'héritage d'où provient ce composant.

Implémente

Remarques

Si le composant n’est pas hérité, cette méthode retourne la valeur NotInherited. Sinon, il retourne l’attribut d’héritage pour ce composant.

S’applique à

Voir aussi