Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
关闭与客户端连接的 dbmlsync 服务器。
Public Function ShutdownServer( ByVal how As DBSC_ShutdownType ) As Boolean
public Boolean ShutdownServer(DBSC_ShutdownType how)
how 表示服务器关机的紧急情况。支持的值在 DBSC_ShutdownType 枚举中列出。
已成功将关闭请求发送到服务器时返回 true;否则返回 false。返回 false 时,您可调用 GetErrorInfo 方法获取有关失败的详细信息。
Shutdown 方法立即返回,但是在服务器真正关闭前可能会有一些延迟。
可使用 WaitForServerShutdown 方法等待,直到服务器真正关闭。
调用 ShutdownServer 后仍应使用 Disconnect 方法。