PropertyBuilder.GetCustomAttributes メソッド

定義

このプロパティで定義されているすべてのカスタム属性を返します。

オーバーロード

名前 説明
GetCustomAttributes(Boolean)

このプロパティのすべてのカスタム属性の配列を返します。

GetCustomAttributes(Type, Boolean)

Typeによって識別されるカスタム属性の配列を返します。

GetCustomAttributes(Boolean)

このプロパティのすべてのカスタム属性の配列を返します。

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[]

すべてのカスタム属性の配列。

例外

このメソッドはサポートされていません。

注釈

Type.GetType または Assembly.GetType を使用してプロパティの親型を反映し、その型から Reflection プロパティ オブジェクトを取得し、PropertyInfo.GetCustomAttributes を呼び出します。

適用対象

GetCustomAttributes(Type, Boolean)

Typeによって識別されるカスタム属性の配列を返します。

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

パラメーター

attributeType
Type

型で識別されるカスタム属性の配列。

inherit
Boolean

true場合は、このプロパティの継承チェーンについて説明し、カスタム属性を見つけます。

返品

Object[]

この反映されたメンバーで定義されているカスタム属性の配列。このメンバーに属性が定義されていない場合は null

例外

このメソッドはサポートされていません。

注釈

Type.GetType または Assembly.GetType を使用してプロパティの親型を反映し、その型から Reflection プロパティ オブジェクトを取得し、PropertyInfo.GetCustomAttributes を呼び出します。

適用対象