Lenguaje

Class.GetDeclaredAnnotations Método

Definición

Devuelve todas las anotaciones declaradas directamente en esta clase.

[Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "")]
public Java.Lang.Annotation.IAnnotation[] GetDeclaredAnnotations();
[<Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "")>]
abstract member GetDeclaredAnnotations : unit -> Java.Lang.Annotation.IAnnotation[]
override this.GetDeclaredAnnotations : unit -> Java.Lang.Annotation.IAnnotation[]

Devoluciones

Todas las anotaciones declaradas directamente en esta clase.

Implementaciones

Atributos

Comentarios

No se incluyen las anotaciones heredadas.

Tenga en cuenta que las anotaciones devueltas por este método son anotaciones de declaración.

Agregado en 1.5.

Java documentación para java.lang.Class.getDeclaredAnnotations().

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el proyecto de código abierto de Android y se usan según los términos descritos en la licencia de atribución de Creative Commons 2.5.

Se aplica a

Consulte también