Lenguaje

IAnnotatedElement.GetAnnotations Método

Definición

Devuelve anotaciones que están presentes en este elemento.

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

Devoluciones

anotaciones presentes en este elemento

Atributos

Comentarios

Devuelve anotaciones que están presentes en este elemento.

Si no hay anotaciones presentes 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.getAnnotations().

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