'Declaration Public Overloads Shadows Function ExecuteReader() As SalesforceDataReader
public new SalesforceDataReader ExecuteReader()
Return Value
A SalesforceDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As SalesforceDataReader
public new SalesforceDataReader ExecuteReader()
public void CreateSalesforceDataReader(string mySelectQuery,string salesforceConnectionString) { SalesforceConnection salesforceConnection = new SalesforceConnection(salesforceConnectionString); SalesforceCommand salesforceCommand = new SalesforceCommand(mySelectQuery, salesforceConnection); salesforceCommand.Connection.Open(); SalesforceDataReader salesforceReader = salesforceCommand.ExecuteReader(); try { while(salesforceReader.Read()) { Console.WriteLine(salesforceReader.GetString(0)); } } finally { salesforceReader.Close(); salesforceConnection.Close(); } }
Public Sub CreateSalesforceDataReader(mySelectQuery As String, _ salesforceConnectionString As String) Dim salesforceConnection As New SalesforceConnection(salesforceConnectionString) Dim salesforceCommand As New SalesforceCommand(mySelectQuery, salesforceConnection) salesforceCommand.Connection.Open() Dim salesforceReader As SalesforceDataReader = salesforceCommand.ExecuteReader() Try While salesforceReader.Read() Console.WriteLine(salesforceReader.GetString(0)) End While Finally salesforceReader.Close() salesforceConnection.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