InheritanceAttribute クラス

定義

この属性に関連付けられているコンポーネントが基底クラスから継承されているかどうかを示します。 このクラスは継承できません。

public ref class InheritanceAttribute sealed : Attribute
[System.AttributeUsage(System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Property)]
public sealed class InheritanceAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Event | System.AttributeTargets.Field | System.AttributeTargets.Property)>]
type InheritanceAttribute = class
    inherit Attribute
Public NotInheritable Class InheritanceAttribute
Inherits Attribute
継承
InheritanceAttribute
属性

注釈

InheritanceAttribute は、メンバーの継承の種類とレベルを表します。

IInheritanceServiceAddInheritedComponents メソッドがコンポーネントのコンポーネント フィールドを検索して基底クラスから継承されたフィールドを識別する場合、メソッドはInheritanceAttributeを使用して各コンポーネントの継承レベルを表します。

コンストラクター

名前 説明
InheritanceAttribute()

InheritanceAttribute クラスの新しいインスタンスを初期化します。

InheritanceAttribute(InheritanceLevel)

指定した継承レベルを使用して、 InheritanceAttribute クラスの新しいインスタンスを初期化します。

フィールド

名前 説明
Default

InheritanceAttributeの既定値がNotInheritedされることを指定します。 このフィールドは読み取り専用です。

Inherited

コンポーネントを継承することを指定します。 このフィールドは読み取り専用です。

InheritedReadOnly

コンポーネントが継承され、読み取り専用であることを指定します。 このフィールドは読み取り専用です。

NotInherited

コンポーネントが継承されないことを指定します。 このフィールドは読み取り専用です。

プロパティ

名前 説明
InheritanceLevel

この属性に格納されている現在の継承レベルを取得または設定します。

TypeId

派生クラスで実装されている場合は、この Attributeの一意の識別子を取得します。

(継承元 Attribute)

メソッド

名前 説明
Equals(Object)

等しいかどうかをテストするためにオーバーライドします。

GetHashCode()

このオブジェクトのハッシュコードを返します。

GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IsDefaultAttribute()

属性の現在の値が属性の既定値かどうかを示す値を取得します。

Match(Object)

派生クラスでオーバーライドされた場合、このインスタンスが指定したオブジェクトと等しいかどうかを示す値を返します。

(継承元 Attribute)
MemberwiseClone()

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()

この属性を文字列に変換します。

明示的なインターフェイスの実装

名前 説明
_Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

一連の名前を対応する一連のディスパッチ識別子に割り当てます。

(継承元 Attribute)
_Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

インターフェイスの型情報を取得するために使用できるオブジェクトの型情報を取得します。

(継承元 Attribute)
_Attribute.GetTypeInfoCount(UInt32)

オブジェクトが提供する型情報インターフェイスの数 (0 または 1) を取得します。

(継承元 Attribute)
_Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

オブジェクトによって公開されるプロパティとメソッドへのアクセスを提供します。

(継承元 Attribute)

適用対象

こちらもご覧ください