See Also

OracleDataReader Class  | OracleDataReader Members  | Overload List

Language

Visual Basic

C#

Show All

i
See AlsoLanguagesDevart.Data.OracleSend comments on this topic.

GetInt32(Int32) Method

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 );

Parameters

i

Return Type

The value of the specified column.

Remarks

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

Example

[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(); 
  } 

See Also

OracleDataReader Class  | OracleDataReader Members  | Overload List

 

 


© 2002 - 2013 Devart. All Rights Reserved.