'Declaration Public Function Clone() As BigcommerceConnection
public BigcommerceConnection Clone()
Return Value
A new BigcommerceConnection object.
'Declaration Public Function Clone() As BigcommerceConnection
public BigcommerceConnection Clone()
Creates a new BigcommerceConnection 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() { BigcommerceConnection bigcommerceConnection = new BigcommerceConnection( "Server=https://bigcommerce-store.mybigcommerce.com/api/v2/;User Id=User;Authentication Token=qweASDzcx1234567890rtyuiqweASDzcx1234567;"); BigcommerceConnection bigcommerceConnection2 = (BigcommerceConnection)bigcommerceConnection.Clone(); Console.WriteLine(bigcommerceConnection2.UserId); }
Public Sub CloneAConnection() Dim bigcommerceConnection As New BigcommerceConnection( _ "Server=https://bigcommerce-store.mybigcommerce.com/api/v2/;User Id=User;Authentication Token=qweASDzcx1234567890rtyuiqweASDzcx1234567;") Dim bigcommerceConnection2 As BigcommerceConnection = CType(bigcommerceConnection.Clone(), BigcommerceConnection) Console.WriteLine(bigcommerceConnection2.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