共用方式為


IRowSet.SetShort Method

Definition

Overloads

SetShort(Int32, Int16)

Sets the designated parameter in this RowSet object's command to the given Java short value.

SetShort(String, Int16)

Sets the designated parameter to the given Java short value.

SetShort(Int32, Int16)

Sets the designated parameter in this RowSet object's command to the given Java short value.

[Android.Runtime.Register("setShort", "(IS)V", "GetSetShort_ISHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetShort (int parameterIndex, short x);
[<Android.Runtime.Register("setShort", "(IS)V", "GetSetShort_ISHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetShort : int * int16 -> unit

Parameters

parameterIndex
Int32

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

x
Int16

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

Sets the designated parameter in this RowSet object's command to the given Java short value. The driver converts this to an SQL SMALLINT value before sending it to the database.

Java documentation for javax.sql.RowSet.setShort(int, short).

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

SetShort(String, Int16)

Sets the designated parameter to the given Java short value.

[Android.Runtime.Register("setShort", "(Ljava/lang/String;S)V", "GetSetShort_Ljava_lang_String_SHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void SetShort (string? parameterName, short x);
[<Android.Runtime.Register("setShort", "(Ljava/lang/String;S)V", "GetSetShort_Ljava_lang_String_SHandler:Javax.Sql.IRowSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetShort : string * int16 -> unit

Parameters

parameterName
String

the name of the parameter

x
Int16

the parameter value

Attributes

Exceptions

if an error occurs accessing the database.

Remarks

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

Added in 1.4.

Java documentation for javax.sql.RowSet.setShort(java.lang.String, short).

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