| Devart.Data.Oracle Namespace > OracleDataReader Class > GetInt32 Method : GetInt32(Int32) Method |
Gets the value of the specified column as a 32-bit signed integer.
[Visual Basic]
Overloads Overrides Public Function GetInt32( _
ByVal i As Integer _
) As Integer [C#]
public override int GetInt32(
int i
);The value of the specified column.
Call IsDBNull to check for null values before calling this method.
[C#]
static void GetMyInt32(OracleConnection myConnection) {
OracleCommand cmd = new OracleCommand("SELECT * FROM Test.AllTypes");
cmd.Connection = myConnection;
myConnection.Open();
try {
OracleDataReader reader = cmd.ExecuteReader();
reader.Read();
int recievedInt = reader.GetInt32(reader.GetOrdinal("Int32Col"));
reader.Close();
}
finally {
myConnection.Close();
}
} OracleDataReader Class | OracleDataReader Members | Overload List
© 2002 - 2013 Devart. All Rights Reserved.