AssemblyBuilder.GetCustomAttributesData Método

Definição

Retorna objetos CustomAttributeData que contêm informações sobre os atributos que foram aplicados ao AssemblyBuilder atual.Returns CustomAttributeData objects that contain information about the attributes that have been applied to the current 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)

Retornos

IList<CustomAttributeData>

Uma lista genérica de objetos CustomAttributeData que representam dados sobre os atributos que foram aplicados ao módulo atual.A generic list of CustomAttributeData objects representing data about the attributes that have been applied to the current module.

Comentários

Use esse método para examinar os atributos personalizados de código no contexto somente de reflexão, nos casos em que os próprios atributos personalizados são definidos no código que é carregado no contexto somente de reflexão.Use this method to examine the custom attributes of code in the reflection-only context, in cases where the custom attributes themselves are defined in code that is loaded into the reflection-only context. Métodos como Attribute.GetCustomAttributes e Assembly.GetCustomAttributes não podem ser usados nesses casos, pois eles criam instâncias dos atributos.Methods such as Attribute.GetCustomAttributes and Assembly.GetCustomAttributes cannot be used in such cases, because they create instances of the attributes. O código no contexto somente de reflexão não pode ser executado.Code in the reflection-only context cannot be executed. Para obter mais informações e código de exemplo, consulte a CustomAttributeData classe.For more information and for example code, see the CustomAttributeData class.

Aplica-se a