IInheritanceService.AddInheritedComponents(IComponent, IContainer) Метод

Определение

Выполняет поиск указанного компонента для полей, реализующих IComponent интерфейс, и добавляет каждый из них в указанный контейнер, сохраняя уровень наследования каждого из них, который можно получить с помощью GetInheritanceAttribute(IComponent) метода.

public:
 void AddInheritedComponents(System::ComponentModel::IComponent ^ component, System::ComponentModel::IContainer ^ container);
public void AddInheritedComponents(System.ComponentModel.IComponent component, System.ComponentModel.IContainer container);
abstract member AddInheritedComponents : System.ComponentModel.IComponent * System.ComponentModel.IContainer -> unit
Public Sub AddInheritedComponents (component As IComponent, container As IContainer)

Параметры

component
IComponent

Поиск IComponent . Поиск начинается с этого компонента.

container
IContainer

Добавление IContainer компонентов в.

Комментарии

Этот метод выполняет поиск указанного компонента для всех полей, реализующих IComponentэти поля, добавляет каждый из них в указанный контейнер и сохраняет InheritanceAttribute их для каждого. Компонент InheritanceAttribute указывает, наследуется ли поле от базового класса и может быть извлечено с помощью GetInheritanceAttribute метода.

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