'Declaration Public Function Clone() As ZohoConnection
public ZohoConnection Clone()
Return Value
A new ZohoConnection object.
'Declaration Public Function Clone() As ZohoConnection
public ZohoConnection Clone()
Creates a new ZohoConnection 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() { ZohoConnection zohoConnection = new ZohoConnection( "API Version=V2;Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f3;ClientId=1000.M4FJLKYTSED90LJHUTVMKKAA432RUK;ClientSecret=89a0ed79957808814cdb20b9765423efffa767d1d0"); ZohoConnection zohoConnection2 = (ZohoConnection)zohoConnection.Clone(); Console.WriteLine(zohoConnection2.UserId); }
Public Sub CloneAConnection() Dim zohoConnection As New ZohoConnection( _ "API Version=V2;Refresh Token=1000.a6fde76542bfbb5244a7e539d4390e72.87e34ea57023c2d0e7dcb9ce55e3e7f3;ClientId=1000.M4FJLKYTSED90LJHUTVMKKAA432RUK;ClientSecret=89a0ed79957808814cdb20b9765423efffa767d1d0") Dim zohoConnection2 As ZohoConnection = CType(zohoConnection.Clone(), ZohoConnection) Console.WriteLine(zohoConnection2.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