JniValueMarshaler.CreateParameterFromManagedExpression 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 an expression for a managed argument's JNI representation. The base implementation adds setup and cleanup for a JNI object reference.
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 in the base implementation.
- sourceValue
- ParameterExpression
The managed source parameter expression.
- synchronize
- ParameterAttributes
Copy-direction flags. The base implementation passes them to argument-state creation and cleanup.
Returns
The expression for the JNI argument. In the base implementation, this is the local variable containing the 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.