JniRuntime.JniValueManager.CreateValue 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 |
|---|---|
| CreateValue(JniObjectReference, JniObjectReferenceOptions, Type) |
Creates a managed value after checking manager disposal. In .NET 11 for Android, delegates creation to the creation hook. |
| CreateValue<T>(JniObjectReference, JniObjectReferenceOptions, Type) |
Creates a typed managed value. In .NET 11 for Android, delegates creation to the creation hook. |
CreateValue(JniObjectReference, JniObjectReferenceOptions, Type)
Creates a managed value after checking manager disposal. In .NET 11 for Android, delegates creation to the creation hook.
public object? CreateValue(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
member this.CreateValue : 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
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
CreateValue<T>(JniObjectReference, JniObjectReferenceOptions, Type)
Creates a typed managed value. In .NET 11 for Android, delegates creation to the creation hook.
public T CreateValue<T>(ref Java.Interop.JniObjectReference reference, Java.Interop.JniObjectReferenceOptions options, Type? targetType = default);
member this.CreateValue : 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
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.