IInheritanceService.AddInheritedComponents(IComponent, IContainer) Metoda

Definice

Vyhledá zadanou komponentu pro pole, která implementují IComponent rozhraní, a přidá je do zadaného kontejneru a uloží úroveň dědičnosti každého, který lze načíst pomocí GetInheritanceAttribute(IComponent) metody.

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)

Parametry

component
IComponent

Hledání.IComponent Hledání začíná touto komponentou.

container
IContainer

Přidání IContainer součástí.

Poznámky

Tato metoda vyhledá zadanou komponentu pro všechna pole, která implementují IComponent, přidá každý do zadaného kontejneru a uloží pro InheritanceAttribute každou z nich. Komponenta InheritanceAttribute označuje, zda je pole zděděno ze základní třídy a lze jej načíst pomocí GetInheritanceAttribute metody.

Platí pro