IDataRecord.GetInt16(Int32) 方法

定义

获取指定字段的 16 位带符号整数值。Gets the 16-bit signed integer value of the specified field.

public:
 short GetInt16(int i);
public short GetInt16 (int i);
abstract member GetInt16 : int -> int16
Public Function GetInt16 (i As Integer) As Short

参数

i
Int32

要查找的字段的索引。The index of the field to find.

返回

Int16

指定字段的 16 位带符号整数值。The 16-bit signed integer value of the specified field.

例外

传递的索引位于 0 至 FieldCount 的范围之外。The index passed was outside the range of 0 through FieldCount.

适用于