'Declaration Public Function Clone() As ExactTargetConnection
public ExactTargetConnection Clone()
Return Value
A new ExactTargetConnection object.
'Declaration Public Function Clone() As ExactTargetConnection
public ExactTargetConnection Clone()
Creates a new ExactTargetConnection object with the properties that have the same values as those of the original object. However, changing properties of the new object has no influence on the values of the same properties of the original object.
Note that state of the new instance is always Closed, regardless of the state of original instance.
public void CloneAConnection() { ExactTargetConnection exactTargetConnection = new ExactTargetConnection( "user=MyCompanyAdmin;password=mypassword;url=https://webservice.s7.exacttarget.com/Service.asmx;"); ExactTargetConnection exactTargetConnection2 = (ExactTargetConnection)exactTargetConnection.Clone(); Console.WriteLine(exactTargetConnection2.UserId); }
Public Sub CloneAConnection() Dim exactTargetConnection As New ExactTargetConnection( _ "user=MyCompanyAdmin;password=mypassword;url=https://webservice.s7.exacttarget.com/Service.asmx;") Dim exactTargetConnection2 As ExactTargetConnection = CType(exactTargetConnection.Clone(), ExactTargetConnection) Console.WriteLine(exactTargetConnection2.UserId) End Sub
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