Module.GetCustomAttributesData Método

Definição

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

IList<CustomAttributeData>

Uma lista genérica de objetos CustomAttributeData 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 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. Métodos como Attribute.GetCustomAttributes e Module.GetCustomAttributes não podem ser usados nesses casos, pois eles criam instâncias dos atributos. O código no contexto somente de reflexão não pode ser executado. Para obter mais informações e código de exemplo, consulte a CustomAttributeData classe.

Aplica-se a