'Declaration Public Overloads Shadows Function ExecuteReader() As FreshBooksDataReader
public new FreshBooksDataReader ExecuteReader()
Return Value
A FreshBooksDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As FreshBooksDataReader
public new FreshBooksDataReader ExecuteReader()
public void CreateFreshBooksDataReader(string mySelectQuery,string freshbooksConnectionString) { FreshBooksConnection freshbooksConnection = new FreshBooksConnection(freshbooksConnectionString); FreshBooksCommand freshbooksCommand = new FreshBooksCommand(mySelectQuery, freshbooksConnection); freshbooksCommand.Connection.Open(); FreshBooksDataReader freshbooksReader = freshbooksCommand.ExecuteReader(); try { while(freshbooksReader.Read()) { Console.WriteLine(freshbooksReader.GetString(0)); } } finally { freshbooksReader.Close(); freshbooksConnection.Close(); } }
Public Sub CreateFreshBooksDataReader(mySelectQuery As String, _ freshbooksConnectionString As String) Dim freshbooksConnection As New FreshBooksConnection(freshbooksConnectionString) Dim freshbooksCommand As New FreshBooksCommand(mySelectQuery, freshbooksConnection) freshbooksCommand.Connection.Open() Dim freshbooksReader As FreshBooksDataReader = freshbooksCommand.ExecuteReader() Try While freshbooksReader.Read() Console.WriteLine(freshbooksReader.GetString(0)) End While Finally freshbooksReader.Close() freshbooksConnection.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