Class.GetDeclaredAnnotations Method

Definition

Returns all annotations declared directly on this class.

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

Returns

All annotations declared directly on this class.

Implements

Attributes

Remarks

Inherited annotations are not included.

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

Added in 1.5.

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

See also