Cisco Cisco Computer Telephony Integration Option 9.0 Developer's Guide

Page of 546
 
9-43
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 9      Agent Object
Methods
errorcode
An output parameter (return parameter in VB) that contains an error code 
from 
 in 
Return Values
Default CTI OS return values. Se
Remarks
A successful request will result in an OnAgentStateChanged event. It may also 
result in OnPreLogout, OnPostLogout, and/or OnLogoutFailed events. If this 
request is unsuccessful, the client receives an OnControlFailureConf event.
SetValue
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 Long
Parameters
key
An input parameter that contains the name of the property whose value you 
want to set.