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()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于