IAnnotatedElement.GetAnnotations Method

Definition

Returns annotations that are <em>present</em> on this element.

[Android.Runtime.Register("getAnnotations", "()[Ljava/lang/annotation/Annotation;", "GetGetAnnotationsHandler:Java.Lang.Reflect.IAnnotatedElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Lang.Annotation.IAnnotation[] GetAnnotations ();
[<Android.Runtime.Register("getAnnotations", "()[Ljava/lang/annotation/Annotation;", "GetGetAnnotationsHandler:Java.Lang.Reflect.IAnnotatedElementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetAnnotations : unit -> Java.Lang.Annotation.IAnnotation[]

Returns

annotations present on this element

Attributes

Remarks

Returns annotations that are <em>present</em> on this element.

If there are no annotations <em>present</em> on this element, the return value is an array of length 0.

The caller of this method is free to modify the returned array; it will have no effect on the arrays returned to other callers.

Added in 1.5.

Java documentation for java.lang.reflect.AnnotatedElement.getAnnotations().

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