Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
向 dbmlsync 服务器发送一个 ping 请求来检查服务器是否处于激活状态并正在对请求进行响应。
Public Function Ping(ByVal timeout As UInt32) As Boolean
public Boolean Ping(UInt32 timeout)
timeout 等待服务器响应 ping 请求的最大毫秒数。使用 DbmlsyncClient.DBSC_INFINITY 可无限期等待响应。
已从服务器接受对 ping 请求的响应时返回 true;否则返回 false。返回 false 时,您可调用 GetErrorInfo 方法获取有关失败的详细信息。
只有连接到服务器才能调用此方法。