Cisco Cisco Computer Telephony Integration OS 8.5 开发者指南

下载
页码 546
 
8-15
Cisco ICM Software CTI OS Developer’s Guide Release 6.0(0)
 
Chapter 8      Session Object
Methods
Disconnect
The Disconnect method disconnects the open connection to the CTI OS server. In 
Java, you can use the Disconnect method to interrupt failover.
Syntax
C++:
void Disconnect (Arguments& args);
COM:
HRESULT Disconnect (/* [in, optional */ IArguments *args, 
/*[out]*/ int * errorcode );
VB:
Disconnect(args As CTIOSCLIENTLib.IArguments) As Long
Java:
int Disconnect(Arguments args)
Parameters
args
An optional arguments array containing the 
CTIOS_FORCEDDISCONNECT keyword, which forces a disconnect even if 
the Session object rejects the disconnect. This keyword should be added to 
the array if the session mode has not yet been set by SetAgent or 
SetSessionMode at the time of the disconnect.
errorcode
An output parameter (return parameter in VB) that contains an error code 
from 
 in 
Return Values
Default CTI OS return values. Se
DumpProperties
See 
 for a description of the DumpProperties method.