 | IJVMWrapperInternalDeclaredNewArrayTArrayType(ArraySegmentTArrayType) Method |
Creates a new Java array, declared with the specified element type, from a portion of a managed array.
Namespace: MASES.JCOBridge.C2JBridge.JVMInteropAssembly: C2JBridge (in C2JBridge.dll) Version: 2.6.10.261112-5ffe0920c00dbac056780af7ab9b1978b26ef4a5
SyntaxIJavaArray DeclaredNewArray<TArrayType>(
ArraySegment<TArrayType> data
)
where TArrayType : struct, new()
Function DeclaredNewArray(Of TArrayType As {Structure, New}) (
data As ArraySegment(Of TArrayType)
) As IJavaArrayParameters
- data ArraySegmentTArrayType
- The segment to copy into the Java array. Only the Count elements starting at Offset are used.
Type Parameters
- TArrayType
- The type of the array elements. Only primitive types are supported: Boolean, Byte, Char, Int16, Int32, Int64, Single and Double.
Return Value
IJavaArrayAn
IJavaArray instance wrapping the newly created Java array.
Exceptions| Exception | Condition |
|---|
| NotSupportedException | TArrayType satisfies the unmanaged constraint but is not one of the supported primitive types. |
See Also