Language

JniHandleOwnership Enum

Definition

Specifies ownership and registration options for a JNI reference.

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum JniHandleOwnership
[<System.Flags>]
type JniHandleOwnership = 
Inheritance
JniHandleOwnership
Attributes

Fields

Name Value Description
DoNotTransfer 0

Specifies that ownership of the JNI reference is not transferred.

TransferLocalRef 1

Transfers a local JNI reference for deletion after use.

TransferGlobalRef 2

Transfers a global JNI reference for deletion after use.

DoNotRegister 16

Requests that a constructed Java peer not be registered.

Applies to