'Declaration Public Function Clone() As MailChimpConnection
public MailChimpConnection Clone()
Return Value
A new MailChimpConnection object.
'Declaration Public Function Clone() As MailChimpConnection
public MailChimpConnection Clone()
Creates a new MailChimpConnection 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() { MailChimpConnection mailchimpConnection = new MailChimpConnection( "api key=8b10fe893c9732d12befe0b7d846ffcb-us10;"); MailChimpConnection mailchimpConnection2 = (MailChimpConnection)mailchimpConnection.Clone(); Console.WriteLine(mailchimpConnection2.UserId); }
Public Sub CloneAConnection() Dim mailchimpConnection As New MailChimpConnection( _ "api key=8b10fe893c9732d12befe0b7d846ffcb-us10;") Dim mailchimpConnection2 As MailChimpConnection = CType(mailchimpConnection.Clone(), MailChimpConnection) Console.WriteLine(mailchimpConnection2.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