Compartir a través de


IPreparedStatement.SetArray(Int32, IArray) Method

Definition

Sets the designated parameter to the given java.sql.Array object.

[Android.Runtime.Register("setArray", "(ILjava/sql/Array;)V", "GetSetArray_ILjava_sql_Array_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetArray (int parameterIndex, Java.Sql.IArray? x);
[<Android.Runtime.Register("setArray", "(ILjava/sql/Array;)V", "GetSetArray_ILjava_sql_Array_Handler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetArray : int * Java.Sql.IArray -> unit

Parameters

parameterIndex
Int32

the first parameter is 1, the second is 2, ...

x
IArray

an Array object that maps an SQL ARRAY value

Attributes

Exceptions

if a database error happens.

Remarks

Sets the designated parameter to the given java.sql.Array object. The driver converts this to an SQL ARRAY value when it sends it to the database.

Added in 1.2.

Java documentation for java.sql.PreparedStatement.setArray(int, java.sql.Array).

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

See also