Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 490
   
12-13
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
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()
Parameters
args
An output parameter containing a pointer to an Arguments array that is a copy of the object.
Return Value
COM: Default HRESULT return values. See 
Others: A reference to the Arg structure that is a copy of the object.