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

SQL Anywhere 11.0.1 (Français) » MobiLink - Client Administration » SQL Anywhere Clients for MobiLink » Dbmlsync API » Dbmlsync API for C++


CancelSync method

Allows a client to cancel a synchronization request previously made using the Sync method.

bool CancelSync( DBSC_SyncHdl hdl )

Only synchronization requests waiting to be serviced can be canceled. The server does not cancel a synchronization once it has begun.

A connection must be established to the server before this method can be used. This method cannot be used if the client has disconnected from the server since the Sync method was called.

  • hdl   The synchronization handle returned by the Sync method when the synchronization was requested.


Returns true if the synchronization request was successfully canceled.

Returns false if the synchronization request was not canceled. When false is returned, you can call the GetErrorInfo method to get more information about the failure. See GetErrorInfo method.