Datasnap.Win.MConnect.TCOMConnection.DoConnect

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: protected
Source:
Datasnap.Win.MConnect.pas
Datasnap.Win.MConnect.hpp
Unit: Datasnap.Win.MConnect
Parent: TCOMConnection

Delphi

procedure DoConnect; override;

C++

virtual void __fastcall DoConnect();

Description

Connects to an application server.

DoConnect is called internally when the Connected property is set to true. DoConnect creates a COM object for the application server (based on the ServerName or ServerGUID property), and sets the value of the AppServer property to this COM object.

Descendants of TCOMConnection override DoConnect to change the way the client application forms a connection to an application server.

See Also