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 .NET

 

CancelSync method

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

Syntax
Boolean CancelSync(UInt32 hdl)
Remarks

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.

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

Returns

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.