Parameter.GetAnnotationsByType(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 des annotations du type spécifié qui sont associées à ce paramètre.
[Android.Runtime.Register("getAnnotationsByType", "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", "", ApiSince=26)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.annotation.Annotation" })]
public Java.Lang.Object[]? GetAnnotationsByType(Java.Lang.Class annotationClass);
[<Android.Runtime.Register("getAnnotationsByType", "(Ljava/lang/Class;)[Ljava/lang/annotation/Annotation;", "", ApiSince=26)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T 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
l’objet Class correspondant au type d’annotation
Retours
toutes les annotations du type spécifié associé à ce paramètre ; sinon, tableau de longueur zéro
Implémente
- Attributs
Remarques
Retourne des annotations associées à ce paramètre. Pour un type d’annotation reproductible, cette méthode examine une annotation conteneur. Si aucune annotation n’est associée, le tableau retourné a la longueur zéro.
Java documentation pour java.lang.reflect.Parameter.getAnnotationsByType(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.