Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 668
 
12-18
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions Release 7.1(1)
 
Chapter 12      Helper Classes
Arguments Class
Syntax
C++:
void Clear()
COM:
HRESULT Clear()
VB:
Clear()
Java, .NET:
void Clear()
Parameters
None.
Return Value
None.
Clone
The Clone method creates a copy of the Arguments structure. Because in C++ this 
method is implemented in the base class (Arg), it returns a reference to an Arg, 
but this is actually a reference to an Arguments array. Therefore, it is necessary 
to cast the return value of this method. The following C++ code sample shows this 
casting:
Arguments & argsCopy = (Arguments&) argsOrig.Clone ();
To cast in VB, do the following:
Dim Args As CTIOSCLIENTLib.IArguments
Set Args = Orig.Clone()
Syntax
C++:
Arg & Clone() 
COM:
HRESULT Clone(/*[out, retval]*/ 
IArguments ** args);
VB:
Clone() as CTIOSCLIENTLib.IArguments
Java:
 Arg Clone()
.NET:
 object Clone()