Parameter.GetDeclaredAnnotation(Class) Método

Definición

Devuelve la anotación de este parámetro para el tipo especificado si la anotación está presente directamente; de lo contrario, devuelve NULL.

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

Parámetros

annotationClass
Class

el objeto Class correspondiente al tipo de anotación

Devoluciones

anotación de este parámetro para el tipo de anotación especificado si está presente directamente; de lo contrario, null

Implementaciones

Atributos

Comentarios

Java documentación para java.lang.reflect.Parameter.getDeclaredAnnotation(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