IAnnotatedElement.GetDeclaredAnnotations Método

Definición

Devuelve anotaciones que están <directamente>presentes</em> en este elemento.

[Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "GetGetDeclaredAnnotationsHandler:Java.Lang.Reflect.IAnnotatedElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Annotation.IAnnotation[] GetDeclaredAnnotations();
[<Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "GetGetDeclaredAnnotationsHandler:Java.Lang.Reflect.IAnnotatedElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetDeclaredAnnotations : unit -> Java.Lang.Annotation.IAnnotation[]

Devoluciones

anotaciones presentes directamente en este elemento

Atributos

Comentarios

Devuelve anotaciones que están <directamente>presentes</em> en este elemento. Este método omite las anotaciones heredadas.

Si no hay anotaciones <em>directamente presentes</em> en este elemento, el valor devuelto es una matriz de longitud 0.

El autor de la llamada de este método es libre de modificar la matriz devuelta; no tendrá ningún efecto en las matrices devueltas a otros llamadores.

Agregado en 1.5.

Java documentación para java.lang.reflect.AnnotatedElement.getDeclaredAnnotations().

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a