System.ComponentModel.Design.IInheritanceService.AddInheritedComponents Method

Searches the specified component for fields that implement the System.ComponentModel.IComponent interface and adds each to the specified container, storing the inheritance level of each which can be retrieved using the IInheritanceService.GetInheritanceAttribute(System.ComponentModel.IComponent) method.

Syntax

public void AddInheritedComponents (System.ComponentModel.IComponent component, System.ComponentModel.IContainer container)

Parameters

component
The System.ComponentModel.IComponent to search. Searching begins with this component.
container
The System.ComponentModel.IContainer to add components to.

Remarks

This method searches the specified component for any fields that implement the System.ComponentModel.IComponent, adds each to the specified container, and stores an System.ComponentModel.InheritanceAttribute for each. The System.ComponentModel.InheritanceAttribute for a component indicates whether the field is inherited from a base class and can be retrieved using the IInheritanceService.GetInheritanceAttribute(System.ComponentModel.IComponent) method.

Requirements

Namespace: System.ComponentModel.Design
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0