ModuleBuilder.GetCustomAttributesData メソッド

定義

現在の ModuleBuilder に適用されている属性に関する情報を、CustomAttributeData オブジェクトとして返します。

public:
 override System::Collections::Generic::IList<System::Reflection::CustomAttributeData ^> ^ GetCustomAttributesData();
public override System.Collections.Generic.IList<System.Reflection.CustomAttributeData> GetCustomAttributesData ();
override this.GetCustomAttributesData : unit -> System.Collections.Generic.IList<System.Reflection.CustomAttributeData>
Public Overrides Function GetCustomAttributesData () As IList(Of CustomAttributeData)

戻り値

現在のモジュールに適用されている属性に関するデータを表す CustomAttributeData オブジェクトのジェネリック リスト。

注釈

リフレクションのみのコンテキストに読み込まれるコードでカスタム属性自体が定義されている場合は、このメソッドを使用して、リフレクションのみのコンテキストでコードのカスタム属性を調べます。 Attribute.GetCustomAttributesAssembly.GetCustomAttributesなどのメソッドは、 属性のインスタンスを作成するため、このような場合は 使用できません。 リフレクションのみのコンテキスト内のコードは実行できません。 詳細とコード例については、 クラスを CustomAttributeData 参照してください。

適用対象