dotConnect for Magento Documentation
Devart.Data.Magento Namespace / MagentoConnection Class / MagentoConnection Constructor / MagentoConnection Constructor()
Example

MagentoConnection Constructor()
Initializes a new instance of the MagentoConnection class.
Syntax
'Declaration
 
Public Function New()
 
Remarks
When a new instance of MagentoConnection 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 MagentoConnection.
public void CreateMagentoConnection()
{
  MagentoConnection magentoConnection = new MagentoConnection();
  magentoConnection.ConnectionString = 
      "domain=192.168.10.68/magento;user=Test;apikey=testpassword;";
  magentoConnection.Open();
  //Do something
  magentoConnection.Close();
}
Public Sub CreateMagentoConnection()
  Dim magentoConnection As New MagentoConnection()
  magentoConnection.ConnectionString = _ 
      "domain=192.168.10.68/magento;user=Test;apikey=testpassword;"
  magentoConnection.Open()
  'Do something
  magentoConnection.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