RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDispatchConnection.Connected Property

Indicates whether the TDispatchConnection object is connected to an application server.

Pascal
property Connected: Boolean;
C++
__property Boolean Connected;

Set Connected to true to establish a connection to the application server. Set Connected to false to terminate the connection. 

When changing the value of Connected, TDispatchConnection generates a BeforeConnect and an AfterConnect event, or a BeforeDisconnect and an AfterDisconnect event. In addition, when setting Connected to true, TDispatchConnection may display a login dialog, depending on the value of LoginPrompt

The Connected property uses the protected DoConnect and DoDisconnect methods to connect to or disconnect from an application server. Descendants of TDispatchConnection override DoConnect and DoDisconnect to change the way the connection is formed or terminated. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!