Assembly.GetCustomAttributesData Método

Definição

Devolve informação sobre os atributos que foram aplicados à corrente Assembly, expressa como CustomAttributeData objetos.

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

Devoluções

Uma lista genérica de CustomAttributeData objetos que representam dados sobre os atributos que foram aplicados à montagem atual.

Observações

Use este método para examinar os atributos personalizados do código no contexto apenas de reflexão, nos casos em que os próprios atributos personalizados estão definidos em código carregado no contexto apenas de reflexão. Métodos como Attribute.GetCustomAttributes e Assembly.GetCustomAttributes não podem ser usados nesses casos, porque criam instâncias dos atributos. O código no contexto apenas de reflexão não pode ser executado. Para mais informações e, por exemplo, para código, consulte a CustomAttributeData classe.

Aplica-se a