'Declaration Public Function Clone() As ZohoDeskConnection
public ZohoDeskConnection Clone()
Return Value
A new ZohoDeskConnection object.
'Declaration Public Function Clone() As ZohoDeskConnection
public ZohoDeskConnection Clone()
Creates a new ZohoDeskConnection 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() { ZohoDeskConnection ZohoDeskConnection = new ZohoDeskConnection( Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f); ZohoDeskConnection ZohoDeskConnection2 = (ZohoDeskConnection)ZohoDeskConnection.Clone(); Console.WriteLine(ZohoDeskConnection2.UserId); }
Public Sub CloneAConnection() Dim ZohoDeskConnection As New ZohoDeskConnection( _ Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f) Dim ZohoDeskConnection2 As ZohoDeskConnection = CType(ZohoDeskConnection.Clone(), ZohoDeskConnection) Console.WriteLine(ZohoDeskConnection2.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