Parameter.GetDeclaredAnnotationsByType(Class) Método

Definición

Devuelve anotaciones del tipo especificado que están presentes directamente o indirectamente en este parámetro.

[Android.Runtime.Register("getDeclaredAnnotationsByType", "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", "", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.annotation.Annotation" })]
public Java.Lang.Object[]? GetDeclaredAnnotationsByType(Java.Lang.Class annotationClass);
[<Android.Runtime.Register("getDeclaredAnnotationsByType", "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", "", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.annotation.Annotation" })>]
abstract member GetDeclaredAnnotationsByType : Java.Lang.Class -> Java.Lang.Object[]
override this.GetDeclaredAnnotationsByType : Java.Lang.Class -> Java.Lang.Object[]

Parámetros

annotationClass
Class

el objeto Class correspondiente al tipo de anotación

Devoluciones

Object[]

todas las anotaciones del tipo especificado están presentes directa o indirectamente en este parámetro; de lo contrario, una matriz de longitud cero

Implementaciones

Atributos

Comentarios

Java documentación para java.lang.reflect.Parameter.getDeclaredAnnotationsByType(java.lang.Class<T>).

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