Package.GetAnnotationsByType(Class) Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Aggiunta in 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[]
Parametri
- annotationClass
- Class
Oggetto Class che rappresenta il tipo di annotazione richiesto.
Valori restituiti
Tutte le annotazioni del tipo richiesto associato a questo elemento del programma.
Implementazioni
- Attributi
Commenti
Aggiunta nella versione 1.8.
per java.lang.Package.getAnnotationsByType(java.lang.Class<A>).
Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.