Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (日本語) » Mobile Link - サーバ管理 » Mobile Link サーバ API » .NET での同期スクリプトの作成 » .NET 用 Mobile Link サーバ API リファレンス » ServerContext インタフェース

 

ShutdownListener メソッド

構文
event iAnywhere.MobiLink.Script.ShutdownCallback 
  ShutdownListener(
  iAnwyhere.MobiLink.Script.ServerContext sc)
Member of iAnywhere.MobiLink.Script.ServerContext
備考

このイベントはシャットダウン時にトリガされます。次のサンプル・コードは、このイベントの使用方法のサンプルです。

ShutdownCallback callback = new ShutdownCallback(shutdownHandler);
_sc.ShutdownListener += callback; 

public void shutdownHandler(ServerContext sc) {
    _test_out_file.WriteLine("shutdownPerformed");
}