Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide
12-12
CTI OS Developer’s Guide for Cisco ICM/IPCC Enterprise & Hosted Editions
Cisco CTI OS Release 7.2(1)
Chapter 12 Helper Classes
Arguments Class
bool AddItem( enum_Keywords key, bool value );
bool AddItem( enum_Keywords key, char * value );
bool AddItem( enum_Keywords key, std::string& value );
bool AddItem( enum_Keywords key, Arg& cArg );
bool AddItem( enum_Keywords key, const Arg& value );
bool AddItem( enum_Keywords key, Arguments& value );
bool AddItem( enum_Keywords key, const Arguments& value)
COM:
HRESULT AddItem(/*[in]*/ VARIANT *key, /*[in]*/ VARIANT *value,
/*[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.
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. It is necessary to 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 will result.
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 will result.
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.