IInheritanceService.GetInheritanceAttribute 方法

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

**命名空间:**System.ComponentModel.Design
**程序集:**System(在 system.dll 中)

语法

声明
Function GetInheritanceAttribute ( _
    component As IComponent _
) As InheritanceAttribute
用法
Dim instance As IInheritanceService
Dim component As IComponent
Dim returnValue As InheritanceAttribute

returnValue = instance.GetInheritanceAttribute(component)
InheritanceAttribute GetInheritanceAttribute (
    IComponent component
)
InheritanceAttribute^ GetInheritanceAttribute (
    IComponent^ component
)
InheritanceAttribute GetInheritanceAttribute (
    IComponent component
)
function GetInheritanceAttribute (
    component : IComponent
) : InheritanceAttribute

参数

  • component
    要为其检索继承属性的 IComponent

返回值

一个 InheritanceAttribute 的实例,用于描述指定组件的继承级别。

备注

如果组件已被 AddInheritedComponents 方法配置过,那么此方法将返回 InheritanceAttribute.NotInherited 值。否则,将返回此组件的继承属性。

您应该在试图获得反映指定组件继承级别的 InheritanceAttribute 之前调用指定组件或其父组件的 AddInheritedComponents

平台

Windows 98、Windows 2000 SP4、Windows Millennium Edition、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition

.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求

版本信息

.NET Framework

受以下版本支持:2.0、1.1、1.0

请参见

参考

IInheritanceService 接口
IInheritanceService 成员
System.ComponentModel.Design 命名空间
InheritanceAttribute 类