OleDbDataReader.GetInt64(Int32) 方法

定义

以 64 位有符号整数的形式获取指定列的值。Gets the value of the specified column as a 64-bit signed integer.

public:
 virtual long GetInt64(int ordinal);
public long GetInt64 (int ordinal);
override this.GetInt64 : int -> int64
Public Function GetInt64 (ordinal As Integer) As Long

参数

ordinal
Int32

从零开始的列序号。The zero-based column ordinal.

返回

指定列的值。The value of the specified column.

异常

指定的强制转换无效。The specified cast is not valid.

注解

不执行任何转换;因此,检索的数据必须已经是64位有符号整数。No conversions are performed; therefore, the data retrieved must already be a 64-bit signed integer.

调用IsDBNull此方法之前,调用以查找 null 值。Call IsDBNull to look for null values before calling this method.

适用于

另请参阅