AnnotationTypeMismatchException Constructors

Definition

Overloads

AnnotationTypeMismatchException(Method, String)

Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.

AnnotationTypeMismatchException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AnnotationTypeMismatchException(Method, String)

Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.

[Android.Runtime.Register(".ctor", "(Ljava/lang/reflect/Method;Ljava/lang/String;)V", "")]
public AnnotationTypeMismatchException (Java.Lang.Reflect.Method? element, string? foundType);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/reflect/Method;Ljava/lang/String;)V", "")>]
new Java.Lang.Annotation.AnnotationTypeMismatchException : Java.Lang.Reflect.Method * string -> Java.Lang.Annotation.AnnotationTypeMismatchException

Parameters

element
Method

the Method object for the annotation element, may be null

foundType
String

the (erroneous) type of data found in the annotation. This string may, but is not required to, contain the value as well. The exact format of the string is unspecified, may be null.

Attributes

Remarks

Constructs an AnnotationTypeMismatchException for the specified annotation type element and found data type.

Java documentation for java.lang.annotation.AnnotationTypeMismatchException.AnnotationTypeMismatchException(java.lang.reflect.Method, java.lang.String).

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

AnnotationTypeMismatchException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AnnotationTypeMismatchException (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Lang.Annotation.AnnotationTypeMismatchException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Lang.Annotation.AnnotationTypeMismatchException

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

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