IInheritanceService.GetInheritanceAttribute(IComponent) Método

Definición

Obtiene el atributo de herencia del componente especificado.

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

Parámetros

component
IComponent

IComponent para el que se va a recuperar el atributo de herencia.

Devoluciones

Instancia de InheritanceAttribute que describe el nivel de herencia del componente especificado.

Comentarios

Si el método ha perfilado AddInheritedComponents el componente, este método devuelve el valor InheritanceAttribute.NotInherited. De lo contrario, devuelve el atributo de herencia de este componente.

Debe llamar AddInheritedComponents al componente especificado o a un elemento primario del componente especificado antes de intentar obtener un InheritanceAttribute que refleje el nivel de herencia del componente especificado.

Se aplica a

Consulte también