IInheritanceService 接口
本文内容
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供了一组用于标识组件中所含组件的方法。
public interface class IInheritanceService
public interface IInheritanceService
type IInheritanceService = interface
Public Interface IInheritanceService
- 派生
此接口提供可用于标识从基类继承的组件的组件的方法。
若要确定继承的组件,请调用 AddInheritedComponents 方法并传递组件以搜索,将 IContainer 传递给存储对已标识组件的引用。 GetInheritanceAttribute调用 方法以检索InheritanceAttribute已由 AddInheritedComponents 方法标识的组件的 。
Add |
在指定的组件中搜索实现 IComponent 接口的字段,并将它们逐一添加到指定的容器,同时存储它们的继承级别,继承级别可以使用 GetInheritanceAttribute(IComponent) 方法检索。 |
Get |
获取指定组件的继承特性。 |
产品 | 版本 |
---|---|
.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 |