dotConnect for Mailchimp Documentation
Devart.Data.MailChimp Namespace / MailChimpConnection Class / MailChimpConnection Constructor / MailChimpConnection Constructor(String)
The connection used to connect to Mailchimp.
Example

In This Topic
    MailChimpConnection Constructor(String)
    In This Topic
    Initializes a new instance of the MailChimpConnection class when given a string containing the connection string.
    Syntax
    'Declaration
     
    Public Function New( _
       ByVal connectionString As String _
    )
    public MailChimpConnection( 
       string connectionString
    )

    Parameters

    connectionString
    The connection used to connect to Mailchimp.
    Remarks
    When a new instance of MailChimpConnection is created, the read/write properties are set to the following initial values unless they are specifically set using their associated keywords in the ConnectionString property.
    Example
    The following example creates and opens a MailChimpConnection.
    public void CreateMailChimpConnection()
    {
      string myConnString = 
          "api key=8b10fe893c9732d12befe0b7d846ffcb-us10;";
      MailChimpConnection mailchimpConnection = new MailChimpConnection(myConnString);
      mailchimpConnection.Open();
      //Do something
      mailchimpConnection.Close();
    }
    Public Sub CreateMailChimpConnection()
      Dim myConnString As String = _
          "api key=8b10fe893c9732d12befe0b7d846ffcb-us10;"
      Dim mailchimpConnection As New MailChimpConnection(myConnString)
      mailchimpConnection.Open()
      'Do something
      mailchimpConnection.Close()
    End Sub
    Requirements

    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

    See Also