Module.GetCustomAttributesData Método

Definição

Devolve uma lista de CustomAttributeData objetos para o módulo atual, que pode ser usada no contexto apenas de reflexão.

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 ao módulo 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 Module.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 exemplos de código, consulte a CustomAttributeData classe.

Aplica-se a