JniEnvironment.BeginMarshalMethod(IntPtr, JniTransition, JniRuntime) 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.
Attempts to enter a managed JNI callback and initialize its transition.
public static bool BeginMarshalMethod(IntPtr jnienv, out Java.Interop.JniTransition transition, out Java.Interop.JniRuntime? runtime);
static member BeginMarshalMethod : nativeint * JniTransition * JniRuntime -> bool
Parameters
- jnienv
-
IntPtr
nativeint
The JNI environment pointer for the managed callback.
- transition
- JniTransition
On success, the active transition; otherwise, the default transition value.
- runtime
- JniRuntime
On success, the current thread's runtime; otherwise, null.
Returns
true if runtime entry and transition initialization succeed; otherwise, false.
Remarks
Entry calls the runtime's OnEnterMarshalMethod hook before it sets the environment pointer. Failures are written to standard error. A false result means the caller must not invoke the callback.