語言

Class.GetDeclaredAnnotations 方法

定義

回傳所有直接在此類別上宣告的註解。

[Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "")]
public Java.Lang.Annotation.IAnnotation[] GetDeclaredAnnotations();
[<Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "")>]
abstract member GetDeclaredAnnotations : unit -> Java.Lang.Annotation.IAnnotation[]
override this.GetDeclaredAnnotations : unit -> Java.Lang.Annotation.IAnnotation[]

傳回

所有註解皆直接在此類別上宣告。

實作

屬性

備註

未包含繼承的註解。

請注意,此方法回傳的任何註解都是宣告註解。

已在1.5中新增。

Java 文件 java.lang.Class.getDeclaredAnnotations()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

另請參閱