IInheritanceService.GetInheritanceAttribute(IComponent) メソッド

定義

指定したコンポーネントの継承属性を取得します。

public:
 System::ComponentModel::InheritanceAttribute ^ GetInheritanceAttribute(System::ComponentModel::IComponent ^ component);
public System.ComponentModel.InheritanceAttribute GetInheritanceAttribute (System.ComponentModel.IComponent component);
abstract member GetInheritanceAttribute : System.ComponentModel.IComponent -> System.ComponentModel.InheritanceAttribute
Public Function GetInheritanceAttribute (component As IComponent) As InheritanceAttribute

パラメーター

component
IComponent

継承属性の取得対象となる IComponent

戻り値

指定したコンポーネントの継承レベルが記述された InheritanceAttribute のインスタンス。

注釈

コンポーネントが メソッドによって AddInheritedComponents プロファイリングされている場合、このメソッドは 値 InheritanceAttribute.NotInheritedを返します。 それ以外の場合は、このコンポーネントの継承属性を返します。

指定したコンポーネントの継承レベルを反映する を取得InheritanceAttributeする前に、指定したコンポーネントまたは指定したコンポーネントの親に対して を呼び出AddInheritedComponentsす必要があります。

適用対象

こちらもご覧ください