Android Guides | Samples

Java.Lang.Class.GetDeclaredAnnotations Method

Returns the annotations that are directly defined on the class represented by this Class.

Syntax

[Android.Runtime.Register("getDeclaredAnnotations", "()[Ljava/lang/annotation/Annotation;", "")]
public IAnnotation[] GetDeclaredAnnotations ()

See Also

Remarks

Returns the annotations that are directly defined on the class represented by this Class. Annotations that are inherited are not included in the result. If there are no annotations at all, an empty array is returned.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1