InheritanceService.AddInheritedComponents 方法

定义

将指定组件继承的组件添加到 .InheritanceService

重载

名称 说明
AddInheritedComponents(IComponent, IContainer)

将指定组件继承的组件添加到 .InheritanceService

AddInheritedComponents(Type, IComponent, IContainer)

将指定组件继承的指定类型的组件添加到 < a0/> 中

AddInheritedComponents(IComponent, IContainer)

Source:
InheritanceService.cs
Source:
InheritanceService.cs
Source:
InheritanceService.cs
Source:
InheritanceService.cs
Source:
InheritanceService.cs

将指定组件继承的组件添加到 .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)

参数

component
IComponent

要搜索要添加到指定容器的继承组件的组件。

container
IContainer

要向其添加继承组件的容器。

实现

注解

此方法搜索指定组件的所有基类的所有字段。 实现 IComponent 的每个字段都会添加到指定的容器。

另请参阅

适用于

AddInheritedComponents(Type, IComponent, IContainer)

Source:
InheritanceService.cs
Source:
InheritanceService.cs
Source:
InheritanceService.cs
Source:
InheritanceService.cs
Source:
InheritanceService.cs

将指定组件继承的指定类型的组件添加到 < a0/> 中

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)

参数

type
Type

要搜索的基类型。

component
IComponent

要搜索要添加到指定容器的继承组件的组件。

container
IContainer

要向其添加继承组件的容器。

注解

此方法搜索组件的所有基类的所有字段。 实现 IComponent 的每个字段都会添加到内部列表中,用于存储 InheritanceAttribute 标识组件的继承级别的字段。 然后,该组件将添加到指定的容器。

适用于