COMPropertyInfo.GetCustomAttributes メソッド

定義

このプロパティにアタッチされているカスタム属性を含む配列を返します。

オーバーロード

GetCustomAttributes(Boolean)

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

このプロパティにアタッチされているカスタム属性を含む配列を返します。

GetCustomAttributes(Type, Boolean)

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

指定した型の属性のみを検索して、このプロパティにアタッチされているカスタム属性を含む配列を返します。

GetCustomAttributes(Boolean)

このプロパティにアタッチされているカスタム属性を含む配列を返します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(bool inherit);
public override object[] GetCustomAttributes (bool inherit);
override this.GetCustomAttributes : bool -> obj[]
Public Overrides Function GetCustomAttributes (inherit As Boolean) As Object()

パラメーター

inherit
Boolean

このメンバーの継承階層を検索して属性を見つける場合は true

戻り値

Object[]

含まれる要素が 0 個の FieldInfo オブジェクトの配列。

こちらもご覧ください

適用対象

GetCustomAttributes(Type, Boolean)

指定した型の属性のみを検索して、このプロパティにアタッチされているカスタム属性を含む配列を返します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public:
 override cli::array <System::Object ^> ^ GetCustomAttributes(Type ^ t, bool inherit);
public override object[] GetCustomAttributes (Type t, bool inherit);
override this.GetCustomAttributes : Type * bool -> obj[]
Public Overrides Function GetCustomAttributes (t As Type, inherit As Boolean) As Object()

パラメーター

t
Type

検索する属性の種類。

inherit
Boolean

このメンバーの継承階層を検索して属性を見つける場合は true

戻り値

Object[]

含まれる要素が 0 個の FieldInfo オブジェクトの配列。

こちらもご覧ください

適用対象