Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide
12-18
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 12 Helper Classes
Arguments Class
Long GetValueUIntObj(String sKey)
Short GetValueShortObj(int iKey)
Short GetValueShortObj(String sKey)
Integer GetValueUShortObj(int iKey)
Integer GetValueUShortObj(String sKey)
Boolean GetValueBoolObj(int iKey)
Boolean GetValueBoolObj(String sKey)
String GetValueString(int iKey)
String GetValueString(String sKey)
.NET:
Boolean GetValue(System.String sKey, out Arg obArg)
Boolean GetValueInt(System.String sKey, out System.Int32
nValue)
Boolean GetValueUInt(System.String sKey, out System.Int64
nValue )
Boolean GetValueShort(System.String sKey, out System.Int16
nValue)
Boolean GetValueUShort(System.String sKey,out System.Int32
nValue)
Boolean GetValueBool(System.String sKey, out System.Boolean
bValue)
Boolean GetValueString(System.String sKey, out System.String
strValue)
Boolean GetValueArray(System.String sKey, out Arguments
arArguments)
Boolean GetValue(Enum_CtiOs eKey, out Arg obArg)
Boolean GetValueInt(Enum_CtiOs eKey, out System.Int32 nValue)
Boolean GetValueShort(Enum_CtiOs eKey, out System.Int16 nValue)
Boolean GetValueUShort(Enum_CtiOs eKey, out System.Int32
nValue)
Boolean GetValueBool(Enum_CtiOs eKey, out System.Boolean
bValue)
Boolean GetValueString(Enum_CtiOs eKey, out System.String
strValue)
Boolean GetValueArray(Enum_CtiOs eKey, out Arguments
arArguments)
Parameters
An enumerated keyword (see
) or a string
specifying the keyword of the value to retrieve.
Return Values
In C++, the two-parameter version returns a boolean indicating success or failure. The one- parameter
version returns the value and throws an exception upon failure.
version returns the value and throws an exception upon failure.
COM returns an HRESULT. See also
Java methods return a null object if the method fails.
Remarks
Visual Basic's Integer type is a 16-bit integer. However, the GetValueInt method returns a 32-bit integer.
Thus, in Visual Basic the return type for GetValueInt is actually a Visual Basic type Long. Visual Basic
Programmers can use the GetValueInt method and receive the return value as an Integer, and Visual Basic
will perform an implicit cast. However, if the value retrieved is a 32-bit integer, an overflow error occurs.
To resolve this error, it is recommended that you use a 32-bit integer (Long).
Thus, in Visual Basic the return type for GetValueInt is actually a Visual Basic type Long. Visual Basic
Programmers can use the GetValueInt method and receive the return value as an Integer, and Visual Basic
will perform an implicit cast. However, if the value retrieved is a 32-bit integer, an overflow error occurs.
To resolve this error, it is recommended that you use a 32-bit integer (Long).