Język

Executable.IsAnnotationPresent(Class) Method

Definition

Determines whether an annotation of the specified type is present on this executable.

[Android.Runtime.Register("isAnnotationPresent", "(Ljava/lang/Class;)Z", "GetIsAnnotationPresent_Ljava_lang_Class_Handler", ApiSince=26)]
public virtual bool IsAnnotationPresent(Java.Lang.Class annotationType);
[<Android.Runtime.Register("isAnnotationPresent", "(Ljava/lang/Class;)Z", "GetIsAnnotationPresent_Ljava_lang_Class_Handler", ApiSince=26)>]
override this.IsAnnotationPresent : Java.Lang.Class -> bool

Parameters

annotationType
Class

The class that represents the annotation type to find.

Returns

true if an annotation of the specified type is present on this executable; otherwise, false.

Implements

Attributes

Remarks

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