Vcl.OleServer.TOleServer.Connect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure Connect; virtual; abstract;

C++

virtual void __fastcall Connect() = 0 ;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.OleServer.pas
Vcl.OleServer.hpp
Vcl.OleServer TOleServer

Description

Establishes a connection to the COM server.

Call Connect to connect the Connect component to the COM server it represents. If the AutoConnect property is True true, the Connect component automatically calls Connect when the application is first run.

Do not use Connect if the value of ConnectKind is ckAttachToInterface. When attaching to an interface, use the ConnectTo method, which is introduced by descendant classes, instead.

If the value of ConnectKind is ckRemote, the RemoteMachineName property must be set before calling Connect.

Connect introduces Connect as an abstract a pure virtual method. Descendant classes must override this method to let the Connect component connect to a specific type of COM server.

See Also