DB2DataReader.GetInt64 Method

Gets the value of the specified column as a 64-bit signed integer.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Function GetInt64( _
   ByVal i As Integer _
) As Long
[C#]
public long GetInt64(
   int i
);
[C++]
public: __int64 GetInt64(
   int i
);
[JScript]
public function GetInt64(
   i : int
) : long;

Parameters

i
The zero-based column ordinal.

Return value

The value of the specified column as a 64-bit signed integer.

Exceptions

Exception type Condition
InvalidCastException The specified cast is not valid.
DB2Exception Invalid conversion.

Remarks

No conversions are performed. The data to be retrieved must be of DB2Type.BigInt.

The following table describes the mapping between the return object data type and the data server data type.
DB2®Type Data Type Db2® Data Type Informix® Data Type
BigInt BIGINT INT8, SERIAL8

Call IsDBNull to check for null values before calling this method.