IResultSet.GetShort Method

Definition

Overloads

GetShort(Int32)

Gets the value of a column specified by column index as a short value.

GetShort(String)

Gets the value of a column specified by column name, as a short value.

GetShort(Int32)

Gets the value of a column specified by column index as a short value.

[Android.Runtime.Register("getShort", "(I)S", "GetGetShort_IHandler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short GetShort (int columnIndex);
abstract member GetShort : int -> int16

Parameters

columnIndex
Int32

the index of the column to read.

Returns

Int16
Attributes

Exceptions

if a database error happens.

Remarks

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

GetShort(String)

Gets the value of a column specified by column name, as a short value.

[Android.Runtime.Register("getShort", "(Ljava/lang/String;)S", "GetGetShort_Ljava_lang_String_Handler:Java.Sql.IResultSetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public short GetShort (string columnLabel);
abstract member GetShort : string -> int16

Parameters

columnLabel
String

Returns

Int16
Attributes

Exceptions

if a database error happens.

Remarks

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