Module.GetCustomAttributesData Método

Definição

Retorna uma lista de CustomAttributeData objetos para o módulo atual, que pode ser usado no contexto somente 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)

Retornos

Uma lista genérica de CustomAttributeData objetos que representam dados sobre os atributos que foram aplicados ao módulo atual.

Comentários

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

Aplica-se a