Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 506
   
12-20
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(1)
Chapter 12      Helper Classes
Arguments Class
Syntax
C++: 
int  NumElements();
COM: 
HRESULT NumElements(/*[out, retval]*/ int * num_elements);
VB:
NumElements as Integer
Java:
int NumElements()
.NET:
int NumElements()
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. It is necessary to 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 will result.
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 will fail.
Syntax
C++:
bool RemoveItem( std::string& key );
bool RemoveItem( char * key );