ISession_Disconnect Method
Disconnects your application from the currently connected session.
Namespace: Â JollyGiant.Emulation
Assembly: Â JGSComdotNet (in JGSComdotNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
StatusCode Disconnect() |
Visual Basic (Declaration) |
---|
Function Disconnect As StatusCode |
Visual C++ |
---|
StatusCode Disconnect() |
JavaScript |
---|
function Disconnect(); |
Return Value
The StatusCode indicating the result of the operation.
This can be one of the following values:
Status code | Description |
---|---|
WHLLOK | The disconnect is successful. |
WHLLNOTCONNECTED | Your Windows HLLAPI application is not currently connected to a host session (see Connect(Object)). |
WHLLSYSERROR | The disconnect failed due to a system error. |
Remarks
After calling this method, other methods that require a connected session are not valid and should not be called. Your application should disconnect from any connected sessions before exiting.
See Also
ISession Interface
JollyGiant.Emulation Namespace
Send comments on this topic to Jolly Giant Software
Copyright 2009 by Jolly Giant Software, Inc.