Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
12-16
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 12      Helper Classes
Arguments Class
Boolean GetElementInt(System.Int32 iIndex, out System.Int32
iValue )
Boolean GetElementUInt(System.Int32 iIndex, out System.Int64
nValue)
Boolean GetElementUShort(System.Int32 iIndex, out System.Int32
nValue)
Boolean GetElementShort(System.Int32 iIndex, out System.Int16
nValue)
Boolean GetElementBool(System.Int32 iIndex, out System.Boolean
bValue)
Boolean GetElementString(System.Int32 iIndex, out System.String
strValue)
Boolean GetElementArguments(System.Int32 iIndex, out Arguments
argArguments)
Boolean GetElementKey(System.Int32 iIndex, out System.String
strKey)
Parameters
value
An output parameter containing the value of the member at the specified index.
key
An output parameter containing the key of the member at the specified index.
index
An input parameter containing an index into the Arguments array.
Return Value
COM: Default HRESULT return values. See 
Others: Returns either the value at the index specified independently from its key, or a boolean 
indicating success or failure.
GetValue Methods
The GetValue methos return the value stored under a key. The existence of a key can be tested using 
IsValid. Keys are not case sensitive. Leading and trailing spaces are always removed from the key. For 
more detail on GetValueArray, GetValueInt, and GetValueString, see the corresponding methods 
described in 
Syntax
C++: 
Arg& GetValue( enum_Keywords eKey );
bool GetValue( enum_Keywords key, Arg ** value );
Arg& GetValue( std::string& key);
bool GetValue( std::string& key, Arg ** value);
Arg& GetValueArg( std::string& key);
bool GetValueArg( std::string& key, Arg ** value);
int GetValueInt( enum_Keywords key); /*throws exception*/
bool GetValueInt( enum_Keywords key, int * value);
unsigned int GetValueUInt( enum_Keywords key);
bool GetValueUInt( enum_Keywords key, unsigned int * value);