Cisco Cisco Computer Telephony Integration OS 8.5 Developer's Guide

Page of 490
   
12-12
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 12      Helper Classes
Arguments Class
/*[out,retval]*/ VARIANT_BOOL success) As Boolean;
VB:
AddItem( Key as Variant, Value as Variant) 
Java, .NET:
Not Applicable. Use the SetValue method.
Parameters
key
Key name for the item to be added.
value
Value of the item to be added.
success
An output parameter (return parameter in C++ and VB) that contains a boolean indicating success 
or lack thereof.
Return Value
C++: Returns True in if the entry was successfully added, otherwise False. 
COM and VB: Standard return values are valid; see 
AddRef (C++ and COM only)
The AddRef method increments the reference count for the data item. You must call this if you are 
storing a pointer to the item for some time. When you are finished with the item, you must call the 
Release method or a memory leak occurs.
Syntax
C++: 
unsigned long AddRef()
COM:
HRESULT AddRef()
VB, Java, .NET: 
Not used
Parameters
None.
Return Values
COM: Default HRESULT return values. See 
C++: Current reference count.
Others: None.
Clear
The Clear method deletes all the elements from Arguments object.