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

SQL Anywhere 11.0.1 (中文) » MobiLink - 客户端管理 » 用于 MobiLink 的 SQL Anywhere 客户端 » Dbmlsync API » 用于 .NET 的 Dbmlsync API

 

WaitForServerShutdown 方法

当服务器已关闭或者当超时到期时(无论何种情况首先出现),WaitForServerShutdown 方法将返回。

语法
Boolean WaitForServerShutdown( UInt32 timeout )
注释

只有在调用了 ShutdownServer 方法之后才能调用 WaitForServerShutdown。请参见ShutdownServer 方法

参数
  • timeout   以毫秒为单位表示等待服务器关闭所需的最长时间。使用 DBSC_INFINITY 可一直等待。DBSC_INFINITY 常量在 DbmlSyncClient 类而不是在命名空间中定义,因此需要为该常量加上前缀。例如,timeout = DbmlSyncClient.DBSC_INFINITY;

返回值

如果由于服务器关闭而返回该方法,则返回 true。

否则返回 false。返回 false 时,您可调用 GetErrorInfo 方法获取有关失败的详细信息。请参见GetErrorInfo 方法