InheritanceService.GetInheritanceAttribute(IComponent) Метод

Определение

Возвращает атрибут наследования для заданного компонента.

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

Параметры

component
IComponent

Компонент, для которого извлекается атрибут наследования.

Возвращаемое значение

Экземпляр класса InheritanceAttribute, который описывает уровень наследования для данного компонента.

Реализации

Комментарии

Если компонент не наследуется, этот метод возвращает значение NotInherited. В противном случае он возвращает атрибут наследования для этого компонента.

Применяется к

См. также раздел