Langage

Package.GetAnnotation(Class) Méthode

Définition

Ajouté dans 1.

[Android.Runtime.Register("getAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "GetGetAnnotation_Ljava_lang_Class_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.annotation.Annotation" })]
public virtual Java.Lang.Object? GetAnnotation(Java.Lang.Class? annotationClass);
[<Android.Runtime.Register("getAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "GetGetAnnotation_Ljava_lang_Class_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "A 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

Objet Class représentant le type d’annotation demandé.

Retours

Annotation demandée ou null lorsqu’elle n’est pas présente.

Implémente

Attributs

Remarques

Ajouté à la version 1.5.

Java documentation pour java.lang.Package.getAnnotation(java.lang.Class<A>).

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 à