Module.GetCustomAttributesData Método

Definición

Devuelve una lista de CustomAttributeData objetos para el módulo actual, que se puede usar en el contexto de solo reflexión.

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)

Devoluciones

Lista genérica de CustomAttributeData objetos que representan datos sobre los atributos que se han aplicado al módulo actual.

Comentarios

Use este método para examinar los atributos personalizados del código en el contexto de solo reflexión, en los casos en los que los propios atributos personalizados se definen en el código que se carga en el contexto de solo reflexión. Los métodos como Attribute.GetCustomAttributes y Module.GetCustomAttributes no se pueden usar en tales casos, porque crean instancias de los atributos. No se puede ejecutar el código en el contexto de solo reflexión. Para obtener más información y código de ejemplo, vea la CustomAttributeData clase .

Se aplica a