使用英语阅读

通过


IInheritanceService 接口

定义

提供了一组用于标识组件中所含组件的方法。

public interface IInheritanceService
派生

注解

此接口提供可用于标识从基类继承的组件的组件的方法。

若要确定继承的组件,请调用 AddInheritedComponents 方法并传递组件以搜索,将 IContainer 传递给存储对已标识组件的引用。 GetInheritanceAttribute调用 方法以检索InheritanceAttribute已由 AddInheritedComponents 方法标识的组件的 。

方法

AddInheritedComponents(IComponent, IContainer)

在指定的组件中搜索实现 IComponent 接口的字段,并将它们逐一添加到指定的容器,同时存储它们的继承级别,继承级别可以使用 GetInheritanceAttribute(IComponent) 方法检索。

GetInheritanceAttribute(IComponent)

获取指定组件的继承特性。

适用于

产品 版本
.NET Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1

另请参阅