Location: Symbol Reference > Classes > TJwWTSSession Class > TJwWTSSession Methods > TJwWTSSession.Disconnect Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwWTSSession.Disconnect Method
Pascal
procedure Disconnect(bWait: Boolean);
Parameters 
Description 
bWait: Boolean 
Indicates whether the operation is synchronous. Specify TRUE to wait for the operation to complete, or FALSE to return immediately. 

The Disconnect function disconnects the logged-on user from the specified Terminal Services session without closing the session. The session remains attached to the terminal server in the disconnected state and currently running applications continue to run. When you attempt to reconnect to the same server , you are reconnected to the same session from which you disconnected, even if you are reconnecting from a different computer. Applications that were left open when you disconnected remain running when you reconnect to the session, with no loss of data. In NLB (Network Load Balancing) environments the Session Directory (starting from Server 2008 this is called TS Session Broker) care of redirecting a user to the server where he has a disconnected session.

Exceptions 
Description 
will be raised if the call fails. 
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!