RecordComponent.GetAnnotation(Class) Método

Definición

Por agregar

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

Parámetros

annotationClass
Class

Devoluciones

Implementaciones

Atributos

Comentarios

Por agregar

Tenga en cuenta que cualquier anotación devuelta por este método es una anotación de declaración.

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