'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoDeskDataReader
public new ZohoDeskDataReader ExecuteReader()
Return Value
A ZohoDeskDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoDeskDataReader
public new ZohoDeskDataReader ExecuteReader()
public void CreateZohoDeskDataReader(string mySelectQuery,string ZohoDeskConnectionString) { ZohoDeskConnection ZohoDeskConnection = new ZohoDeskConnection(ZohoDeskConnectionString); ZohoDeskCommand ZohoDeskCommand = new ZohoDeskCommand(mySelectQuery, ZohoDeskConnection); ZohoDeskCommand.Connection.Open(); ZohoDeskDataReader ZohoDeskReader = ZohoDeskCommand.ExecuteReader(); try { while(ZohoDeskReader.Read()) { Console.WriteLine(ZohoDeskReader.GetString(0)); } } finally { ZohoDeskReader.Close(); ZohoDeskConnection.Close(); } }
Public Sub CreateZohoDeskDataReader(mySelectQuery As String, _ ZohoDeskConnectionString As String) Dim ZohoDeskConnection As New ZohoDeskConnection(ZohoDeskConnectionString) Dim ZohoDeskCommand As New ZohoDeskCommand(mySelectQuery, ZohoDeskConnection) ZohoDeskCommand.Connection.Open() Dim ZohoDeskReader As ZohoDeskDataReader = ZohoDeskCommand.ExecuteReader() Try While ZohoDeskReader.Read() Console.WriteLine(ZohoDeskReader.GetString(0)) End While Finally ZohoDeskReader.Close() ZohoDeskConnection.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