AnnotationTypeMismatchException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
- 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.