IConnection.CreateArrayOf(String, Object[]) Method

Definition

Factory method for creating Array objects.

[Android.Runtime.Register("createArrayOf", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;", "GetCreateArrayOf_Ljava_lang_String_arrayLjava_lang_Object_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Java.Sql.IArray? CreateArrayOf (string? typeName, Java.Lang.Object[]? elements);
[<Android.Runtime.Register("createArrayOf", "(Ljava/lang/String;[Ljava/lang/Object;)Ljava/sql/Array;", "GetCreateArrayOf_Ljava_lang_String_arrayLjava_lang_Object_Handler:Java.Sql.IConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member CreateArrayOf : string * Java.Lang.Object[] -> Java.Sql.IArray

Parameters

typeName
String

the SQL name of the type the elements of the array map to. The typeName is a database-specific name which may be the name of a built-in type, a user-defined type or a standard SQL type supported by this database. This is the value returned by <code>Array.getBaseTypeName</code>

elements
Object[]

the elements that populate the returned object

Returns

IArray

an Array object whose elements map to the specified SQL type

Attributes

Exceptions

if this connection is closed, or there's a problem creating the array.

Remarks

Java documentation for java.sql.Connection.createArrayOf(java.lang.String, java.lang.Object[]).

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