API:Datasnap.Win.MConnect.TOLEnterpriseConnection.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: TOLEnterpriseConnection

Delphi

procedure DoConnect; override;

C++

virtual void __fastcall DoConnect();

Description

Connects to an application server.

Datasnap.Win.MConnect.TOLEnterpriseConnection.DoConnect inherits from Datasnap.Win.MConnect.TCOMConnection.DoConnect. All content below this line refers to Datasnap.Win.MConnect.TCOMConnection.DoConnect.

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