次の方法で共有


IPreparedStatement.SetInt(Int32, Int32) Method

Definition

Sets the designated parameter to the given Java int value.

[Android.Runtime.Register("setInt", "(II)V", "GetSetInt_IIHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetInt (int parameterIndex, int x);
[<Android.Runtime.Register("setInt", "(II)V", "GetSetInt_IIHandler:Java.Sql.IPreparedStatementInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetInt : int * int -> unit

Parameters

parameterIndex
Int32

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

x
Int32

the parameter value

Attributes

Exceptions

if a database error happens.

Remarks

Sets the designated parameter to the given Java int value. The driver converts this to an SQL INTEGER value when it sends it to the database.

Java documentation for java.sql.PreparedStatement.setInt(int, int).

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