_Assembly.GetCustomAttributes メソッド

定義

COM オブジェクトに、GetCustomAttributes メソッドへのバージョンに依存しないアクセスが用意されています。

オーバーロード

GetCustomAttributes(Type, Boolean)

COM オブジェクトに、GetCustomAttributes(Type, Boolean) メソッドへのバージョンに依存しないアクセスが用意されています。

GetCustomAttributes(Boolean)

COM オブジェクトに、GetCustomAttributes(Boolean) メソッドへのバージョンに依存しないアクセスが用意されています。

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

メソッドは GetCustomAttributes 、このアセンブリのカスタム属性を取得します。

GetCustomAttributes(Type, Boolean)

COM オブジェクトに、GetCustomAttributes(Type, Boolean) メソッドへのバージョンに依存しないアクセスが用意されています。

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

パラメーター

attributeType
Type

カスタム属性を返す対象の Type

inherit
Boolean

Assembly 型のオブジェクトでは、この引数は無視されます。

戻り値

Object[]

このアセンブリの attributeType で指定されたカスタム属性を格納している Object 型の配列。

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

メソッドは GetCustomAttributes 、このアセンブリのすべてのカスタム属性を取得します。

こちらもご覧ください

適用対象

GetCustomAttributes(Boolean)

COM オブジェクトに、GetCustomAttributes(Boolean) メソッドへのバージョンに依存しないアクセスが用意されています。

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

パラメーター

inherit
Boolean

Assembly 型のオブジェクトでは、この引数は無視されます。

戻り値

Object[]

このアセンブリのカスタム属性を格納している Object 型の配列。

注釈

このメソッドは、アンマネージ コードからマネージド クラスにアクセスするためのメソッドであり、マネージド コードから呼び出さないでください。

メソッドは GetCustomAttributes 、このアセンブリのすべてのカスタム属性を取得します。

こちらもご覧ください

適用対象