dotConnect for BigCommerce Documentation
Devart.Data.Bigcommerce Namespace / BigcommerceConnection Class / BigcommerceConnection Constructor / BigcommerceConnection Constructor()
Example

In This Topic
    BigcommerceConnection Constructor()
    In This Topic
    Initializes a new instance of the BigcommerceConnection class.
    Syntax
    'Declaration
     
    Public Function New()
    public BigcommerceConnection()
    Remarks
    When a new instance of BigcommerceConnection 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 BigcommerceConnection.
    public void CreateBigcommerceConnection()
    {
      BigcommerceConnection bigcommerceConnection = new BigcommerceConnection();
      bigcommerceConnection.ConnectionString = 
          "Server=https://bigcommerce-store.mybigcommerce.com/api/v2/;User Id=User;Authentication Token=qweASDzcx1234567890rtyuiqweASDzcx1234567;";
      bigcommerceConnection.Open();
      //Do something
      bigcommerceConnection.Close();
    }
    Public Sub CreateBigcommerceConnection()
      Dim bigcommerceConnection As New BigcommerceConnection()
      bigcommerceConnection.ConnectionString = _ 
          "Server=https://bigcommerce-store.mybigcommerce.com/api/v2/;User Id=User;Authentication Token=qweASDzcx1234567890rtyuiqweASDzcx1234567;"
      bigcommerceConnection.Open()
      'Do something
      bigcommerceConnection.Close()
    End Sub
    See Also