OracleDataReader.GetInt16(Int32) 方法
定义
获取指定列的 16 位有符号整数形式的值。Gets the value of the specified column as a 16-bit signed integer.
public:
virtual short GetInt16(int i);
public:
override short GetInt16(int i);
public short GetInt16 (int i);
public override short GetInt16 (int i);
abstract member GetInt16 : int -> int16
override this.GetInt16 : int -> int16
override this.GetInt16 : int -> int16
Public Function GetInt16 (i As Integer) As Short
Public Overrides Function GetInt16 (i As Integer) As Short
参数
- i
- Int32
从零开始的列序号。The zero-based column ordinal.
返回
指定列的 16 位有符号整数形式的值。The value of the specified column as a 16-bit signed integer.
实现
例外
指定的强制转换无效。The specified cast is not valid.
注解
调用 IsDBNull 以在调用此方法前检查是否有 null 值。Call IsDBNull to check for null values before calling this method.