Redigera

Dela via


InheritanceService.AddInheritedComponents Method

Definition

Adds the components inherited by the specified component to the InheritanceService.

Overloads

AddInheritedComponents(IComponent, IContainer)

Adds the components inherited by the specified component to the InheritanceService.

AddInheritedComponents(Type, IComponent, IContainer)

Adds the components of the specified type that are inherited by the specified component to the InheritanceService.

AddInheritedComponents(IComponent, IContainer)

Adds the components inherited by the specified component to the InheritanceService.

public:
 virtual 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
override this.AddInheritedComponents : System.ComponentModel.IComponent * System.ComponentModel.IContainer -> unit
Public Sub AddInheritedComponents (component As IComponent, container As IContainer)

Parameters

component
IComponent

The component to search for inherited components to add to the specified container.

container
IContainer

The container to add the inherited components to.

Implements

Remarks

This method searches all the fields of all base classes of the specified component. Each field that implements IComponent is added to the specified container.

See also

Applies to

AddInheritedComponents(Type, IComponent, IContainer)

Adds the components of the specified type that are inherited by the specified component to the InheritanceService.

protected:
 virtual void AddInheritedComponents(Type ^ type, System::ComponentModel::IComponent ^ component, System::ComponentModel::IContainer ^ container);
protected virtual void AddInheritedComponents (Type type, System.ComponentModel.IComponent component, System.ComponentModel.IContainer container);
protected virtual void AddInheritedComponents (Type? type, System.ComponentModel.IComponent component, System.ComponentModel.IContainer container);
abstract member AddInheritedComponents : Type * System.ComponentModel.IComponent * System.ComponentModel.IContainer -> unit
override this.AddInheritedComponents : Type * System.ComponentModel.IComponent * System.ComponentModel.IContainer -> unit
Protected Overridable Sub AddInheritedComponents (type As Type, component As IComponent, container As IContainer)

Parameters

type
Type

The base type to search for.

component
IComponent

The component to search for inherited components to add to the specified container.

container
IContainer

The container to add the inherited components to.

Remarks

This method searches all the fields of all base classes of component. Each field that implements IComponent is added to an internal list that stores an InheritanceAttribute that identifies the inheritance level of the component. The component is then added to the specified container.

Applies to