Language

JniPeerMembers.JniInstanceMethods.StartCreateInstance Method

Definition

Allocates a Java object without running its constructor.

public Java.Interop.JniObjectReference StartCreateInstance(string constructorSignature, Type declaringType, Java.Interop.JniArgumentValue* parameters);
member this.StartCreateInstance : string * Type * nativeptr<Java.Interop.JniArgumentValue> -> Java.Interop.JniObjectReference

Parameters

constructorSignature
String

The constructor descriptor; checked for null but not used to invoke a constructor in this phase.

declaringType
Type

The managed type whose Java peer class is allocated.

parameters
JniArgumentValue*

Unused in this allocation phase.

Returns

A local JNI reference to the allocated object, whose constructor has not run. The caller must release the reference.

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