Cisco Cisco Computer Telephony Integration Option 8.5 Guia Do Programador

Página de 490
   
12-22
CTI OS Developer’s Guide for Cisco Unified Contact Center Enterprise
Release 8.5(3)
Chapter 12      Helper Classes
Arguments Class
Return Values
COM: Default HRESULT return values. See 
Others: A boolean indicating success or failure.
SetValue
The SetValue method sets a value for a key. Keys are not case sensitive. Leading and trailing spaces are 
always removed from the key.
Syntax
C++:
 
 bool SetValue( std::string& key, int value );
 bool SetValue( std::string& key, unsigned int value );
 bool SetValue( std::string& key, unsigned short value );
 bool SetValue( std::string& key, short value );
 bool SetValue( std::string& key, bool value );
 
 bool SetValue( std::string& key, std::string& value );
 
 bool SetValue( std::string& key, char * pchar );
 bool SetValue( std::string& key, Arg& value );
 
 bool SetValue( std::string& key, Arguments& value );
 bool SetValue( std::string& key, const Arguments& value);
 bool SetValue( char * key, int value );
 bool SetValue( char * key, unsigned int value );
 bool SetValue( char * key, unsigned short value );
 bool SetValue( char * key, short value );
 bool SetValue( char * key, bool value );
 bool SetValue( char * key, std::string& value );
 bool SetValue( char * key, char * value   );
 bool SetValue( char * key, Arg& value );
 bool SetValue( char * key, Arguments& value );
 bool SetValue( char * key, const Arguments& value );
 bool SetValue( enum_Keywords key, int value );
 bool SetValue( enum_Keywords key, unsigned int value );
 bool SetValue( enum_Keywords key, unsigned short value );
 bool SetValue( enum_Keywords key, short value );
 bool SetValue( enum_Keywords key, bool value );
 bool SetValue( enum_Keywords key, std::string& value );
 
 bool SetValue( enum_Keywords key, Arg& value );
 
 bool SetValue( enum_Keywords key, const Arg& value );
 bool SetValue( enum_Keywords key, Arguments& value );
 bool SetValue( enum_Keywords key, const Arguments&
cArguments);
 bool SetValue( enum_Keywords key, char * value );
COM: 
HRESULT SetValue(/*[in]*/ VARIANT* key, /*[in]*/ VARIANT*
value,/*[out, retval]*/ VARIANT_BOOL* success);
VB:  
SetValue (key as String, value as Variant) as Boolean
Java:
boolean SetValue(Arguments rArguments)
boolean SetValue(int iKey, Arg rArg)
boolean SetValue(String sKey, Arg rArg)
boolean SetValue(int iKey, int iVal)
boolean SetValue(String sKey, int iVal)
boolean SetValue(int iKey, short nValue)
boolean SetValue(String sKey, short nValue)
boolean SetValue(int iKey, String sValue)
boolean SetValue(String sKey, String sValue)
boolean SetValueUInt(int iKey, long lValue)
boolean SetValueUInt(String sKey, long lValue)
boolean SetValueUShort(int iKey, int iValue)