Connection Property (MailChimpCommand)
Gets or sets the
MailChimpConnection used by this instance of the
MailChimpCommand.
Property Value
The connection to a data source. The default value is a null reference.
The following example creates a
MailChimpCommand and sets some of its properties.
public void CreateCommand()
{
string mySelectQuery = "SELECT * FROM Folders ORDER BY Id";
MailChimpCommand mailchimpCommand = new MailChimpCommand(mySelectQuery);
mailchimpCommand.Connection = new MailChimpConnection(
"api key=8b10fe893c9732d12befe0b7d846ffcb-us10;");
mailchimpCommand.CommandType = System.Data.CommandType.Text;
}
Public Sub CreateCommand()
Dim mySelectQuery As String = _
"SELECT * FROM Folders ORDER BY Id"
Dim mailchimpCommand As New MailChimpCommand(mySelectQuery)
mailchimpCommand.Connection = New MailChimpConnection( _
"api key=8b10fe893c9732d12befe0b7d846ffcb-us10;")
mailchimpCommand.CommandType = System.Data.CommandType.Text
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