JniObjectReference.Dispose 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 |
|---|---|
| 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.
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
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.
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.