GetInt32

This method returns the Int32 value of the specified NUMBER column. Note: int is equivalent to Int32.

Declaration

// C#
public override int GetInt32(int index);

Parameters

Return Value

The Int32 value of the column.

Implements

IDataRecord

Exceptions

InvalidOperationException - The connection is closed, the reader is closed, Read() has not been called, or all rows have been read.

IndexOutOfRangeException - The column index is invalid.

InvalidCastException - The accessor method is invalid for this column type or the column value is NULL.

Remarks

IsDBNull should be called to check for NULL values before calling this method.

  <div class="infoboxnote" markdown="1">

  **See Also:**

  - "[Oracle.DataAccess.Client and Oracle.ManagedDataAccess.Client Namespaces](intro003.html#GUID-2A5A5F0B-E6C9-45AF-9477-FBD55F7FCDC5)"

  - [OracleDataReader Class](OracleDataReaderClass.html#GUID-6A8F1309-277F-4DA7-B463-642D81DDCB1C)

  - [OracleDataReader Members](DataReaderMembers.html#GUID-634A5009-7D1D-4DD1-9748-88769E702CF5)

  </div>