AssemblyBuilder.GetCustomAttributes メソッド

定義

現在の AssemblyBuilderに適用されているカスタム属性を返します。

オーバーロード

名前 説明
GetCustomAttributes(Boolean)

現在の AssemblyBuilderに適用されているすべてのカスタム属性を返します。

GetCustomAttributes(Type, Boolean)

現在の AssemblyBuilderに適用され、指定した属性型から派生したすべてのカスタム属性を返します。

GetCustomAttributes(Boolean)

現在の AssemblyBuilderに適用されているすべてのカスタム属性を返します。

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

カスタム属性を含む配列。属性がない場合、配列は空です。

適用対象

GetCustomAttributes(Type, Boolean)

現在の AssemblyBuilderに適用され、指定した属性型から派生したすべてのカスタム属性を返します。

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から任意のレベルで派生するカスタム属性を含む配列。そのような属性がない場合、配列は空です。

例外

attributeTypenullです。

attributeType はランタイムによって提供される Type オブジェクトではありません。 たとえば、 attributeTypeTypeBuilder オブジェクトです。

適用対象