Langage

RecordComponent.GetAnnotation(Class) Méthode

Définition

À ajouter

[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

Paramètres

annotationClass
Class

Retours

Implémente

Attributs

Remarques

À ajouter

Notez que toute annotation retournée par cette méthode est une annotation de déclaration.

Java documentation pour java.lang.reflect.RecordComponent.getAnnotation(java.lang.Class<T>).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à