NetBox 2.7 使用手册

OnServiceStop 事件

服务停止事件

语法

Sub OnServiceStop
...
End Sub

注释

当服务管理程序向服务提出停止请求时出发 OnServiceStop 事件,服务程序需要在 OnServiceStop 事件中停止自己创建的应用,比如 HttpServer 等。停止后服务系统将退出 Service.DoEvents,返回到用户的主程序中,此时程序应尽快退出,如果结束需要大量数据处理,应在 OnServiceStop 事件中处理。

应用于

Service 对象
版权所有: 2003- 网络盒子