언어

AccessibleObject.GetDeclaredAnnotation(Class) 메서드

정의

주석이 직접 있는 경우 지정된 형식에 대해 이 개체의 주석을 반환합니다. 그렇지 않으면 null을 반환합니다.

[Android.Runtime.Register("getDeclaredAnnotation", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "GetGetDeclaredAnnotation_Ljava_lang_Class_Handler", ApiSince=26)]
[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", ApiSince=26)>]
[<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입니다.

구현

특성

설명

1.8에 추가되었습니다.

에 대한 java.lang.reflect.AccessibleObject.getDeclaredAnnotation(java.lang.Class<T>)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상