Language

JniValueMarshaler.CreateParameterFromManagedExpression Method

Definition

Builds setup and cleanup expressions for a managed argument's JNI handle.

public virtual System.Linq.Expressions.Expression CreateParameterFromManagedExpression(Java.Interop.Expressions.JniValueMarshalerContext context, System.Linq.Expressions.ParameterExpression sourceValue, System.Reflection.ParameterAttributes synchronize);
abstract member CreateParameterFromManagedExpression : Java.Interop.Expressions.JniValueMarshalerContext * System.Linq.Expressions.ParameterExpression * System.Reflection.ParameterAttributes -> System.Linq.Expressions.Expression
override this.CreateParameterFromManagedExpression : Java.Interop.Expressions.JniValueMarshalerContext * System.Linq.Expressions.ParameterExpression * System.Reflection.ParameterAttributes -> System.Linq.Expressions.Expression

Parameters

context
JniValueMarshalerContext

Collects generated locals, setup statements, and cleanup statements.

sourceValue
ParameterExpression

The managed source parameter expression.

synchronize
ParameterAttributes

Copy-direction flags passed to argument-state creation and cleanup.

Returns

A local-variable expression containing the argument reference handle.

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