InheritanceService.GetInheritanceAttribute(IComponent) Método

Definición

Obtiene el atributo de herencia del componente especificado.

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

Parámetros

component
IComponent

Componente del cual se va a recuperar el atributo de herencia.

Devoluciones

Un objeto InheritanceAttribute que describe el nivel de herencia del que procede este componente.

Implementaciones

Comentarios

Si el componente no se hereda, este método devuelve el valor NotInherited. De lo contrario, devuelve el atributo de herencia para este componente.

Se aplica a

Consulte también