IAnnotatedElement.GetDeclaredAnnotation(Class) メソッド

定義

このような注釈が <em>間接的に存在する場合は、指定した型に対してこの要素の注釈</em>、それ以外の場合は null を返します。

[Android.Runtime.Register("getDeclaredAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "GetGetDeclaredAnnotation_Ljava_lang_Class_Handler:Java.Lang.Reflect.IAnnotatedElement, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)]
[Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.annotation.Annotation" })]
public virtual Java.Lang.Object? GetDeclaredAnnotation(Java.Lang.Class annotationClass);
[<Android.Runtime.Register("getDeclaredAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "GetGetDeclaredAnnotation_Ljava_lang_Class_Handler:Java.Lang.Reflect.IAnnotatedElement, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=24)>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "T extends java.lang.annotation.Annotation" })>]
abstract member GetDeclaredAnnotation : Java.Lang.Class -> Java.Lang.Object
override this.GetDeclaredAnnotation : Java.Lang.Class -> Java.Lang.Object

パラメーター

annotationClass
Class

注釈型に対応する Class オブジェクト

返品

この要素に直接存在する場合は、指定された注釈型に対するこの要素の注釈。それ以外の場合は null

属性

注釈

このような注釈が <em>間接的に存在する場合は、指定した型に対してこの要素の注釈</em>、それ以外の場合は null を返します。

このメソッドは、継承された注釈を無視します。 (この要素に注釈が直接存在しない場合は null を返します)。

1.8 で追加されました。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象