Open Method (MailChimpConnection)
Opens a Mailchimp connection with the property settings specified by the
ConnectionString.
The following example creates a
MailChimpConnection, opens it, displays some of its properties, and then closes the connection.
|
|---|
public void CreateMailChimpConnection(string myConnString)
{
MailChimpConnection mailChimpConnection = new MailChimpConnection(myConnString);
mailChimpConnection.Open();
MessageBox.Show("ServerVersion: " + mailChimpConnection.ServerVersion
+ "\nState: " + mailChimpConnection.State.ToString());
mailChimpConnection.Close();
} |
|
|---|
Public Sub CreateMailChimpConnection(myConnString As String)
Dim mailChimpConnection As New MailChimpConnection(myConnString)
mailChimpConnection.Open()
MessageBox.Show("ServerVersion: " + mailChimpConnection.ServerVersion _
+ ControlChars.Cr + "State: " + mailChimpConnection.State.ToString())
mailChimpConnection.Close()
End Sub |