Cisco Cisco Computer Telephony Integration Option 8.5 Developer's Guide

Page of 500
   
7-14
CTI OS Developer’s Guide for Cisco Unified ICM/Contact Center Enterprise & Hosted
Release 7.5(1)
Chapter 7      CtiOs Object
Methods
boolean SetValueUInt (String key, long value)
boolean SetValueUShort (int key, int value)
boolean SetValueUShort (String key, int value
Parameters
key 
The key whose value is to be set.
value
The value to use in setting the element with the designated key.
Returns
True if successfully added, false if not.
SetValue (C++, COM, and VB)
The SetValue method sets the value of the specified Agent property
Syntax
C++:
bool SetValue( string& key, string& value)
bool SetValue( string& keyValuePair)
bool SetValue( string& key, int value)
bool SetValue( const char * key, const char * value)
bool SetValue( const char * keyValuePair)
bool SetValue( const char * key, int value)
COM:
HRESULT SetValue (/*[in]*/ VARIANT *key, /*[in]*/ VARIANT *value, /*[out,retval]*/ 
VARIANT_BOOL * errorcode)
VB:
SetValue (key As Variant, value As Variant) As Bool
Parameters
key
An input parameter that contains the name of the property whose value you want to set.
value
An input parameter containing the value to be used in setting the specified property.
keyValuePair
An input parameter containing a string in the format “key=value” where key is a property to set and 
value is the new value.
errorcode
An output parameter (return parameter in VB) that contains an error code from 
 in 
Return Values
COM: 
Default CTI OS return values. See