'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoDataReader
public new ZohoDataReader ExecuteReader()
Return Value
A ZohoDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoDataReader
public new ZohoDataReader ExecuteReader()
public void CreateZohoDataReader(string mySelectQuery,string zohoConnectionString) { ZohoConnection zohoConnection = new ZohoConnection(zohoConnectionString); ZohoCommand zohoCommand = new ZohoCommand(mySelectQuery, zohoConnection); zohoCommand.Connection.Open(); ZohoDataReader zohoReader = zohoCommand.ExecuteReader(); try { while(zohoReader.Read()) { Console.WriteLine(zohoReader.GetString(0)); } } finally { zohoReader.Close(); zohoConnection.Close(); } }
Public Sub CreateZohoDataReader(mySelectQuery As String, _ zohoConnectionString As String) Dim zohoConnection As New ZohoConnection(zohoConnectionString) Dim zohoCommand As New ZohoCommand(mySelectQuery, zohoConnection) zohoCommand.Connection.Open() Dim zohoReader As ZohoDataReader = zohoCommand.ExecuteReader() Try While zohoReader.Read() Console.WriteLine(zohoReader.GetString(0)) End While Finally zohoReader.Close() zohoConnection.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