JniRuntime.JniValueManager.CreateValueCore 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 |
|---|---|
| CreateValueCore(JniObjectReference, JniObjectReferenceOptions, Type) |
Defines non-generic managed value creation from a JNI reference. |
| CreateValueCore<T>(JniObjectReference, JniObjectReferenceOptions, Type) |
Defines typed managed value creation from a JNI reference. |
CreateValueCore(JniObjectReference, JniObjectReferenceOptions, Type)
Defines non-generic managed value creation from a JNI reference.
protected abstract object? CreateValueCore(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
abstract member CreateValueCore : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> obj
Parameters
- reference
- JniObjectReference
The JNI reference supplied to the conversion implementation.
- options
- JniObjectReferenceOptions
Reference-transfer options forwarded to the conversion implementation.
- targetType
- Type
The optional requested managed target type.
Returns
The value produced by the creation implementation.
Remarks
Derived implementations control conversion and source-reference transfer.
Applies to
CreateValueCore<T>(JniObjectReference, JniObjectReferenceOptions, Type)
Defines typed managed value creation from a JNI reference.
protected abstract T CreateValueCore<T>(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
abstract member CreateValueCore : JniObjectReference * Java.Interop.JniObjectReferenceOptions * Type -> 'T
Type Parameters
- T
The managed result type.
Parameters
- reference
- JniObjectReference
The JNI reference supplied to the conversion implementation.
- options
- JniObjectReferenceOptions
Reference-transfer options forwarded to the conversion implementation.
- targetType
- Type
The optional requested managed target type.
Returns
The value produced by the creation implementation.
Remarks
The generic result can be the default value, as permitted by the return annotations.