Vcl.OleServer.TOleServer.ConnectKind

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ConnectKind: TConnectKind read GetConnectKind write SetConnectKind;

C++

__property TConnectKind ConnectKind = {read=GetConnectKind, write=SetConnectKind, nodefault};

Properties

Type Visibility Source Unit Parent
property published
Vcl.OleServer.pas
Vcl.OleServer.hpp
Vcl.OleServer TOleServer

Description

Indicates the type of process to which the ConnectKind component establishes a connection.

Set ConnectKind to indicate how the ConnectKind component establishes a connection. ConnectKind establishes the connection when the application is run (if AutoConnect is True true) or when the application calls the Connect (or ConnectTo) method.

The following table lists the possible values:



Value Meaning

ckRunningOrNew

Attach to a running server or create a new instance of the server.

ckNewInstance

Always create a new instance of the server.

ckRunningInstance

Only attach to a running instance of the server.

ckRemote

Bind to a remote instance of the server. When using this option, you must supply a value for RemoteMachineName.

ckAttachToInterface

Don't bind to the server. Instead, the application supplies an interface using the ConnectTo method, which is introduced in descendant classes. This option can't be used with the AutoConnect property.



See Also