'Declaration Public Overloads Shadows Function ExecuteReader() As BigcommerceDataReader
public new BigcommerceDataReader ExecuteReader()
Return Value
A BigcommerceDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As BigcommerceDataReader
public new BigcommerceDataReader ExecuteReader()
public void CreateBigcommerceDataReader(string mySelectQuery,string bigcommerceConnectionString) { BigcommerceConnection bigcommerceConnection = new BigcommerceConnection(bigcommerceConnectionString); BigcommerceCommand bigcommerceCommand = new BigcommerceCommand(mySelectQuery, bigcommerceConnection); bigcommerceCommand.Connection.Open(); BigcommerceDataReader bigcommerceReader = bigcommerceCommand.ExecuteReader(); try { while(bigcommerceReader.Read()) { Console.WriteLine(bigcommerceReader.GetString(0)); } } finally { bigcommerceReader.Close(); bigcommerceConnection.Close(); } }
Public Sub CreateBigcommerceDataReader(mySelectQuery As String, _ bigcommerceConnectionString As String) Dim bigcommerceConnection As New BigcommerceConnection(bigcommerceConnectionString) Dim bigcommerceCommand As New BigcommerceCommand(mySelectQuery, bigcommerceConnection) bigcommerceCommand.Connection.Open() Dim bigcommerceReader As BigcommerceDataReader = bigcommerceCommand.ExecuteReader() Try While bigcommerceReader.Read() Console.WriteLine(bigcommerceReader.GetString(0)) End While Finally bigcommerceReader.Close() bigcommerceConnection.Close() End Try End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2