dotConnect for Salesforce Marketing Cloud Documentation
Devart.Data.ExactTarget Namespace / ExactTargetConnection Class / ExactTargetConnection Constructor / ExactTargetConnection Constructor(String)
The connection used to connect to ExactTarget.
Example

ExactTargetConnection Constructor(String)
Initializes a new instance of the ExactTargetConnection 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 ExactTarget.
Remarks
When a new instance of ExactTargetConnection 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 ExactTargetConnection.
public void CreateExactTargetConnection()
{
  string myConnString = 
      "user=MyCompanyAdmin;password=mypassword;url=https://webservice.s7.exacttarget.com/Service.asmx;";
  ExactTargetConnection exactTargetConnection = new ExactTargetConnection(myConnString);
  exactTargetConnection.Open();
  //Do something
  exactTargetConnection.Close();
}
Public Sub CreateExactTargetConnection()
  Dim myConnString As String = _
      "user=MyCompanyAdmin;password=mypassword;url=https://webservice.s7.exacttarget.com/Service.asmx;"
  Dim exactTargetConnection As New ExactTargetConnection(myConnString)
  exactTargetConnection.Open()
  'Do something
  exactTargetConnection.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