Class.GetAnnotations Method

Definition

Returns all annotations present on this class.

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

Returns

All annotations present on this class.

Implements

Attributes

Remarks

For annotation types marked Inherited, annotations inherited from a superclass are included; other superclass annotations are not.

Note that any annotations returned by this method are declaration annotations.

Added in 1.5.

Java documentation for java.lang.Class.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

See also