語言

Parameter.GetDeclaredAnnotations 方法

定義

回傳直接 存在 於此參數上的註解。

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

傳回

直接存在於此參數上的註解

實作

屬性

備註

回傳 直接存在 於此參數上的註解,忽略繼承的註解。 若無直接註解,回傳陣列長度為零。 修改回傳陣列不會影響返回給其他呼叫者的陣列。

Java 文件 java.lang.reflect.Parameter.getDeclaredAnnotations()

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

適用於