AssemblyBuilder.GetCustomAttributesData Metoda

Definice

Vrátí CustomAttributeData objekty, které obsahují informace o atributech, které byly použity na aktuální AssemblyBuilder.

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)

Návraty

Obecný seznam CustomAttributeData objektů představujících data o atributech, které byly použity v aktuálním modulu.

Poznámky

Pomocí této metody můžete prozkoumat vlastní atributy kódu v kontextu jen pro reflexi v případech, kdy vlastní atributy jsou definovány v kódu, který je načten do kontextu pouze reflexe. Metody jako Attribute.GetCustomAttributes a Assembly.GetCustomAttributes nelze v takových případech použít, protože vytvářejí instance atributů. Kód v kontextu jen pro reflexi nelze spustit. Další informace a například kód najdete ve CustomAttributeData třídě.

Platí pro