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 クラスを参照してください。

適用対象