Clone Method (ZohoDeskConnection)
Creates a new object that is a copy of the current instance.
This example shows how to clone a
ZohoDeskConnection. To make sure all the properties are inherited, one of them (UserId) is written to the console.
|
|---|
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 |