'Declaration Public Shadows Function CreateCommand() As ExactTargetCommand
public new ExactTargetCommand CreateCommand()
Return Value
A ExactTargetCommand object.
'Declaration Public Shadows Function CreateCommand() As ExactTargetCommand
public new ExactTargetCommand CreateCommand()
public void CreateExactTargetCommand(string myConnString) { ExactTargetConnection exactTargetConnection = new ExactTargetConnection(myConnString); ExactTargetCommand exactTargetCommand = exactTargetConnection.CreateCommand(); exactTargetCommand.CommandText = "INSERT INTO Email (Name, Subject) VALUES ('Sale', 'Big Sale!')"; exactTargetConnection.Open(); try { exactTargetCommand.ExecuteNonQuery(); } finally { exactTargetConnection.Close(); } }
Public Sub CreateExactTargetCommand(ByVal myConnString As String) Dim exactTargetConnection As New ExactTargetConnection(myConnString) Dim exactTargetCommand As ExactTargetCommand = exactTargetConnection.CreateCommand() exactTargetCommand.CommandText = "INSERT INTO Email (Name, Subject) VALUES ('Sale', 'Big Sale!')" exactTargetConnection.Open() Try exactTargetCommand.ExecuteNonQuery() Finally exactTargetConnection.Close() End Try End Sub