Vcl.OleServer.TOleServer.ConnectKind

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property ConnectKind: TConnectKind read GetConnectKind write SetConnectKind;

C++

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

プロパティ

種類 可視性 ソース ユニット
property published
Vcl.OleServer.pas
Vcl.OleServer.hpp
Vcl.OleServer TOleServer

説明

ConnectKind コンポーネントが接続を確立する際の処理の種類を指定します。

ConnectKind プロパティを設定すると,ConnectKind コンポーネントが接続を確立する方法を指定できます。アプリケーションを実行するとき(AutoConnect が Truetrue の場合),またはアプリケーションが Connect(または ConnectTo)メソッドを呼び出したときに,ConnectKind は接続を設定します。

次の表に,指定できる値を示します。



意味

ckRunningOrNew

実行中のサーバーに接続するか,またはサーバーの新しいインスタンスを作成する。

ckNewInstance

常に,サーバーの新しいインスタンスを作成する。

ckRunningInstance

実行中のサーバーのインスタンスへの接続だけを行う。

ckRemote

サーバーのリモートインスタンスにバインドする。このオプションを使用する場合,RemoteMachineName に値を指定しなければならない。

ckAttachToInterface

サーバーにはバインドしない。かわりに,アプリケーションが ConnectTo メソッドを使ってインターフェースを供給し,これによって下位クラスが作成される。このオプションは,AutoConnect プロパティと組み合わせて使用することはできない。



関連項目