MethodBuilder.GetCustomAttributes メソッド

定義

このメソッドに対して定義されているカスタム属性を返します。

オーバーロード

名前 説明
GetCustomAttributes(Type, Boolean)

指定された型によって識別されるカスタム属性を返します。

GetCustomAttributes(Boolean)

このメソッドに定義されているすべてのカスタム属性を返します。

GetCustomAttributes(Type, Boolean)

指定された型によって識別されるカスタム属性を返します。

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

このメンバーの継承チェーンを検索してカスタム属性を検索するかどうかを指定します。

返品

Object[]

attributeType型のこのメソッドの属性を表すオブジェクトの配列を返します。

例外

このメソッドは現在サポートされていません。 GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])を使用してメソッドを取得し、返されたMethodInfoGetCustomAttributes(Boolean)を呼び出します。

適用対象

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

このメンバーの継承チェーンを検索してカスタム属性を検索するかどうかを指定します。

返品

Object[]

このメソッドのすべてのカスタム属性を表すオブジェクトの配列を返します。

例外

このメソッドは現在サポートされていません。 GetMethod(String, BindingFlags, Binder, CallingConventions, Type[], ParameterModifier[])を使用してメソッドを取得し、返されたMethodInfoGetCustomAttributes(Boolean)を呼び出します。

適用対象