Taal

JniObjectReference.Dispose Method

Definition

Overloads

Name Description
Dispose(JniObjectReference)

Releases a JNI reference according to its stored type and clears its handle.

Dispose(JniObjectReference, JniObjectReferenceOptions)

Disposes the reference only when the options include source disposal.

Dispose(JniObjectReference)

Releases a JNI reference according to its stored type and clears its handle.

public static void Dispose(ref Java.Interop.JniObjectReference reference);
static member Dispose : JniObjectReference -> unit

Parameters

reference
JniObjectReference

The reference to release and invalidate. A zero handle requires no action.

Applies to

Dispose(JniObjectReference, JniObjectReferenceOptions)

Disposes the reference only when the options include source disposal.

public static void Dispose(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options);
static member Dispose : JniObjectReference * Java.Interop.JniObjectReferenceOptions -> unit

Parameters

reference
JniObjectReference

The reference to release if options requests source disposal.

options
JniObjectReferenceOptions

Reference transfer options. CopyAndDispose requests disposal; None, Copy, and CopyAndDoNotRegister leave the reference unchanged.

Applies to