Partager via


AnnotationTypeMismatchException.Element Method

Definition

Returns the Method object for the incorrectly typed element.

[Android.Runtime.Register("element", "()Ljava/lang/reflect/Method;", "GetElementHandler")]
public virtual Java.Lang.Reflect.Method? Element ();
[<Android.Runtime.Register("element", "()Ljava/lang/reflect/Method;", "GetElementHandler")>]
abstract member Element : unit -> Java.Lang.Reflect.Method
override this.Element : unit -> Java.Lang.Reflect.Method

Returns

the Method object for the incorrectly typed element, or null if unavailable

Attributes

Remarks

Returns the Method object for the incorrectly typed element. The value may be unavailable if this exception has been serialized and then read back in.

Java documentation for java.lang.annotation.AnnotationTypeMismatchException.element().

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