Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 490
   
12-20
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 12      Helper Classes
Arguments Class
Parameters
num_elements
Pointer to an integer value containing the number of elements in the Arguments array.
Return Value
COM: Default HRESULT return values. See 
Others: Number of elements in arguments array.
Release (C++ and COM only)
The Release method decrements the reference count for the data item. You must call Release when you 
are finished with a data item that has had its reference count incremented via CreateInstance or AddRef; 
otherwise, a memory leak occurs.
Syntax
C++: 
unsigned long Release()
COM:
HRESULT Release()
VB, Java, .NET: 
Not used
Parameters
None.
Return Values
COM: Default HRESULT return values. See 
C++: The current reference count after the Release() call.
RemoveItem
The RemoveItem method removes a value and its associated key from an arguments array. Subsequent 
attempts to access a value that was removed using RemoveItem fail.
Syntax
C++:
bool RemoveItem( std::string& key );
bool RemoveItem( char * key );
bool RemoveItem( enum_Keywords key );
COM:
HRESULT RemoveItem(/*[in]*/ VARIANT* key, /*[out, retval]*/
VARIANT_BOOL* bSuccess);
VB: 
RemoveItem ( key as Variant) as Boolean
Java:
boolean RemoveItem(int key)
boolean RemoveItem(String key)