JniEnvironment.References.NewReturnToJniRef 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.
Overloads
| Name | Description |
|---|---|
| NewReturnToJniRef(IJavaPeerable) |
Creates a local reference for return to JNI and removes it from managed local-reference accounting. |
| NewReturnToJniRef(JniObjectReference) |
Creates and transfers a local reference for a JNI return value. |
NewReturnToJniRef(IJavaPeerable)
Creates a local reference for return to JNI and removes it from managed local-reference accounting.
public static IntPtr NewReturnToJniRef(Java.Interop.IJavaPeerable value);
static member NewReturnToJniRef : Java.Interop.IJavaPeerable -> nativeint
Parameters
- value
- IJavaPeerable
The peer to return, or null for a null Java result.
Returns
nativeint
The transferred local handle, or Zero if the peer or its reference is invalid.
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
NewReturnToJniRef(JniObjectReference)
Creates and transfers a local reference for a JNI return value.
public static IntPtr NewReturnToJniRef(Java.Interop.JniObjectReference value);
static member NewReturnToJniRef : Java.Interop.JniObjectReference -> nativeint
Parameters
- value
- JniObjectReference
The source reference to copy without consuming it.
Returns
nativeint
The transferred local handle, or Zero for a zero source handle.
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.