DbDataRecord.GetInt16(Int32) 方法

定义

以 16 位带符号整数的形式返回指定列的值。

public:
 abstract short GetInt16(int i);
public:
 virtual short GetInt16(int i);
public abstract short GetInt16 (int i);
public short GetInt16 (int i);
abstract member GetInt16 : int -> int16
abstract member GetInt16 : int -> int16
override this.GetInt16 : int -> int16
Public MustOverride Function GetInt16 (i As Integer) As Short
Public Function GetInt16 (i As Integer) As Short

参数

i
Int32

列序号。

返回

指定列的值。

实现

注解

不执行任何转换;因此,检索的数据必须已是 16 位有符号整数。

适用于

另请参阅