Class.GetDeclaredAnnotationsByType(Class) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Retourne les annotations demandées déclarées directement sur cette classe.
[Android.Runtime.Register("getDeclaredAnnotationsByType", "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", "", ApiSince=34)]
[Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.annotation.Annotation" })]
public Java.Lang.Object[] GetDeclaredAnnotationsByType(Java.Lang.Class annotationClass);
[<Android.Runtime.Register("getDeclaredAnnotationsByType", "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", "", ApiSince=34)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "A extends java.lang.annotation.Annotation" })>]
abstract member GetDeclaredAnnotationsByType : Java.Lang.Class -> Java.Lang.Object[]
override this.GetDeclaredAnnotationsByType : Java.Lang.Class -> Java.Lang.Object[]
Paramètres
- annotationClass
- Class
Objet Class représentant le type d’annotation demandé.
Retours
Annotations demandées déclarées directement sur cette classe.
Implémente
- Attributs
Exceptions
si annotationClass c’est null.
Remarques
Les annotations héritées ne sont pas prises en compte.
Notez que toutes les annotations retournées par cette méthode sont des annotations de déclaration.
Ajouté dans la version 1.8.
Java documentation pour java.lang.Class.getDeclaredAnnotationsByType(java.lang.Class<A>).
Les parties de cette page sont des modifications basées sur le travail créé et partagé par le projet Android Open Source et utilisés en fonction des termes décrits dans la licence d’attribution Creative Commons 2.5.