Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 546
 
12-24
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 12      Helper Classes
Arguments Class
COM:
HRESULT IsValid( /*[in]*/ VARIANT* key, /*[out, retval]*/ 
VARIANT_BOOL* bIsvalid);
VB: 
IsValid (key as string) as Boolean
Java:
boolean IsValid(int key)
boolean IsValid(String key)
boolean   IsValid(Arg rArg)
Parameters
key/arg
Either the key of the desired Arguments member or an Arg containing a string 
key.
C++ and COM allow you to specify the key as string or enumerated (see 
); all others expect 
the key as a string.
Return Values
COM: Default HRESULT return values. Se
Others: True if key exists in the current Arguments array, otherwise False.
NumElements
The NumElements method returns number of elements stored in the current 
arguments array. This method is useful in combination with GetElement to 
implement a “for” loop to iterate over all values of an arguments array without 
knowing the keywords (those can be retrieved at the same time using 
GetElementKey).
Syntax
C++: 
int  NumElements();
COM: 
HRESULT NumElements(/*[out, retval]*/ int * num_elements);
VB:
NumElements as Integer
Java:
int NumElements()