Language

JavaPeerProxy.SetActivationPeerReference(IJavaPeerable, IntPtr) Method

Definition

Sets an activation peer's borrowed JNI handle and Java identity hash.

public static void SetActivationPeerReference(Java.Interop.IJavaPeerable peer, IntPtr jniSelf);
static member SetActivationPeerReference : Java.Interop.IJavaPeerable * nativeint -> unit

Parameters

peer
IJavaPeerable

The managed peer whose reference and identity hash are to be set.

jniSelf
IntPtr

nativeint

The JNI handle to associate with peer without creating another JNI reference.

Remarks

The reference is stored with type Invalid. This helper does not register the peer or create a global reference.

Applies to