JniRuntime.JniValueManager.CreateLocalObjectReferenceArgument 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.
Creates a local JNI argument reference through the implementation hook.
public Java.Interop.JniObjectReference CreateLocalObjectReferenceArgument(Type type, object? value);
member this.CreateLocalObjectReferenceArgument : Type * obj -> Java.Interop.JniObjectReference
Parameters
- type
- Type
The non-null managed argument type.
- value
- Object
The managed argument to represent in Java.
Returns
The local reference supplied by the implementation.
Remarks
The caller owns a valid returned local reference and must dispose or transfer it.