JniRuntime.ReflectionJniValueManager.CreateLocalObjectReferenceArgumentCore 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 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.