Vcl.SvcMgr.TService.OnExecute

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

Delphi

property OnExecute: TServiceEvent read FOnExecute write FOnExecute;

C++

__property TServiceEvent OnExecute = {read=FOnExecute, write=FOnExecute};

プロパティ

種類 可視性 ソース ユニット
event published
Vcl.SvcMgr.pas
Vcl.SvcMgr.hpp
Vcl.SvcMgr TService

説明

サービスに関連付けられたスレッドが起動したときに発生します。

新しいスレッドを生成して,OnStart イベントハンドラで個々のサービス要求を処理しているのではない場合に,サービスを実現する場所です。OnExecute イベントハンドラが完了すると,サービススレッドは終了します。ほとんどの OnExecute イベントハンドラは,サービススレッドの ProcessRequests メソッドを呼び出すループを保持しているので,ほかのサービス要求はロックアウトされません。

関連項目