dotConnect for Mailchimp Documentation
Devart.Data.MailChimp Namespace / MailChimpConnection Class / MailChimpConnection Constructor / MailChimpConnection Constructor()
Example

In This Topic
    MailChimpConnection Constructor()
    In This Topic
    Initializes a new instance of the MailChimpConnection class.
    Syntax
    'Declaration
     
    Public Function New()
    public MailChimpConnection()
    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()
    {
      MailChimpConnection mailchimpConnection = new MailChimpConnection();
      mailchimpConnection.ConnectionString = 
          "api key=8b10fe893c9732d12befe0b7d846ffcb-us10;";
      mailchimpConnection.Open();
      //Do something
      mailchimpConnection.Close();
    }
    Public Sub CreateMailChimpConnection()
      Dim mailchimpConnection As New MailChimpConnection()
      mailchimpConnection.ConnectionString = _ 
          "api key=8b10fe893c9732d12befe0b7d846ffcb-us10;"
      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