dotConnect for Magento Documentation
Devart.Data.Magento Namespace / MagentoConnection Class / MagentoConnection Constructor / MagentoConnection Constructor(String)
The connection used to connect to Magento.
Example

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

Parameters

connectionString
The connection used to connect to Magento.
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()
{
  string myConnString = 
      "domain=192.168.10.68/magento;user=Test;apikey=testpassword;";
  MagentoConnection magentoConnection = new MagentoConnection(myConnString);
  magentoConnection.Open();
  //Do something
  magentoConnection.Close();
}
Public Sub CreateMagentoConnection()
  Dim myConnString As String = _
      "domain=192.168.10.68/magento;user=Test;apikey=testpassword;"
  Dim magentoConnection As New MagentoConnection(myConnString)
  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