Parameter.GetDeclaredAnnotations Method

Definition

Returns annotations that are directly present on this parameter.

[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[]

Returns

annotations directly present on this parameter

Implements

Attributes

Remarks

Returns annotations that are directly present on this parameter and ignores inherited annotations. If no annotations are directly present, the returned array has length zero. Modifying the returned array does not affect arrays returned to other callers.

Java documentation for java.lang.reflect.Parameter.getDeclaredAnnotations().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to