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 |