OleDbDataReader.GetInt32(Int32) 方法
定义
获取指定列的 32 位带符号整数形式的值。Gets the value of the specified column as a 32-bit signed integer.
public:
virtual int GetInt32(int ordinal);
public int GetInt32 (int ordinal);
override this.GetInt32 : int -> int
Public Function GetInt32 (ordinal As Integer) As Integer
参数
- ordinal
- Int32
从零开始的列序号。The zero-based column ordinal.
返回
指定列的值。The value of the specified column.
异常
指定的强制转换无效。The specified cast is not valid.
注解
不执行任何转换;因此,检索的数据必须已经是32位有符号整数。No conversions are performed; therefore, the data retrieved must already be a 32-bit signed integer.
调用IsDBNull此方法之前,调用以查找 null 值。Call IsDBNull to look for null values before calling this method.