Langage

Package.GetAnnotationsByType(Class) Méthode

Définition

Ajouté dans 1.

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

Paramètres

annotationClass
Class

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

Retours

Object[]

Toutes les annotations du type demandé associé à cet élément de programme.

Implémente

Attributs

Remarques

Ajouté dans la version 1.8.

Java documentation pour java.lang.Package.getAnnotationsByType(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 à