Language

JniRuntime.ReflectionJniValueManager.CreateLocalObjectReferenceArgumentCore Method

Definition

Creates a local reference from temporary object-reference argument state.

protected override Java.Interop.JniObjectReference CreateLocalObjectReferenceArgumentCore(Type type, object? value);
override this.CreateLocalObjectReferenceArgumentCore : Type * obj -> Java.Interop.JniObjectReference

Parameters

type
Type

The managed type used to select a marshaler.

value
Object

The managed argument to marshal.

Returns

A new local reference, or an invalid reference when no native argument reference was produced.

Remarks

Temporary marshaler state is destroyed in a finally block after the local reference is created.

Applies to