'Declaration Public Overloads Shadows Function ExecuteReader() As ExactTargetDataReader
public new ExactTargetDataReader ExecuteReader()
Return Value
A ExactTargetDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As ExactTargetDataReader
public new ExactTargetDataReader ExecuteReader()
public void CreateExactTargetDataReader(string mySelectQuery,string exactTargetConnectionString) { ExactTargetConnection exactTargetConnection = new ExactTargetConnection(exactTargetConnectionString); ExactTargetCommand exactTargetCommand = new ExactTargetCommand(mySelectQuery, exactTargetConnection); exactTargetCommand.Connection.Open(); ExactTargetDataReader exactTargetReader = exactTargetCommand.ExecuteReader(); try { while(exactTargetReader.Read()) { Console.WriteLine(exactTargetReader.GetString(0)); } } finally { exactTargetReader.Close(); exactTargetConnection.Close(); } }
Public Sub CreateExactTargetDataReader(mySelectQuery As String, _ exactTargetConnectionString As String) Dim exactTargetConnection As New ExactTargetConnection(exactTargetConnectionString) Dim exactTargetCommand As New ExactTargetCommand(mySelectQuery, exactTargetConnection) exactTargetCommand.Connection.Open() Dim exactTargetReader As ExactTargetDataReader = exactTargetCommand.ExecuteReader() Try While exactTargetReader.Read() Console.WriteLine(exactTargetReader.GetString(0)) End While Finally exactTargetReader.Close() exactTargetConnection.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