Share via


IPreparedStatement.SetRef(Int32, IRef) Method

Definition

Sets the designated parameter to the given REF(<structured-type>) value.

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

Parameters

parameterIndex
Int32

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

x
IRef

an SQL REF value

Attributes

Exceptions

if a database error happens.

Remarks

Sets the designated parameter to the given REF(&lt;structured-type&gt;) value. The driver converts this to an SQL REF value when it sends it to the database.

Added in 1.2.

Java documentation for java.sql.PreparedStatement.setRef(int, java.sql.Ref).

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