Language

JavaObjectArray<T> Constructors

Definition

Overloads

Name Description
JavaObjectArray<T>(IEnumerable<T>)

Creates a Java object array containing the supplied sequence values.

JavaObjectArray<T>(IList<T>)

Creates a Java object array and marshals the supplied list values into it.

JavaObjectArray<T>(Int32)

Creates a Java object array whose elements initially contain null references.

JavaObjectArray<T>(JniObjectReference, JniObjectReferenceOptions)

Initializes an object-array wrapper through the runtime's peer-construction policy.

JavaObjectArray<T>(IEnumerable<T>)

Creates a Java object array containing the supplied sequence values.

public JavaObjectArray(System.Collections.Generic.IEnumerable<T> value);
new Java.Interop.JavaObjectArray<'T> : seq<'T> -> Java.Interop.JavaObjectArray<'T>

Parameters

value
IEnumerable<T>

The non-null sequence whose values are copied.

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

JavaObjectArray<T>(IList<T>)

Creates a Java object array and marshals the supplied list values into it.

public JavaObjectArray(System.Collections.Generic.IList<T> value);
new Java.Interop.JavaObjectArray<'T> : System.Collections.Generic.IList<'T> -> Java.Interop.JavaObjectArray<'T>

Parameters

value
IList<T>

The source list whose elements are copied and marshaled.

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

JavaObjectArray<T>(Int32)

Creates a Java object array whose elements initially contain null references.

public JavaObjectArray(int length);
new Java.Interop.JavaObjectArray<'T> : int -> Java.Interop.JavaObjectArray<'T>

Parameters

length
Int32

The non-negative array length, measured in elements.

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

JavaObjectArray<T>(JniObjectReference, JniObjectReferenceOptions)

Initializes an object-array wrapper through the runtime's peer-construction policy.

public JavaObjectArray(ref Java.Interop.JniObjectReference handle, Java.Interop.JniObjectReferenceOptions options);
new Java.Interop.JavaObjectArray<'T> : JniObjectReference * Java.Interop.JniObjectReferenceOptions -> Java.Interop.JavaObjectArray<'T>

Parameters

handle
JniObjectReference

The JNI object-array reference. None permits deferred peer initialization with an invalid reference.

options
JniObjectReferenceOptions

Reference-transfer and peer-registration options passed to the runtime.

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