JNIEnv.IsAssignableFrom(IntPtr, IntPtr) Method
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.
Tests whether an object of one Java class can be cast to another.
public static bool IsAssignableFrom(IntPtr clazz1, IntPtr clazz2);
static member IsAssignableFrom : nativeint * nativeint -> bool
Parameters
- clazz1
-
IntPtr
nativeint
A live, non-null JNI reference to the source Java class, usable on the calling thread until the call returns or throws.
- clazz2
-
IntPtr
nativeint
A live, non-null JNI reference to the target Java class, usable on the calling thread until the call returns or throws.
Returns
true if an object of clazz1 can be cast to clazz2; otherwise, false.
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.