指定したコンポーネントの継承属性を取得します。
名前空間: 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 クラス