UploadAck event

The UploadAck event is triggered after the component has received acknowledgement of the upload from the MobiLink server.

Syntax
Public Event UploadAck( _ 
  ByVal status As DbmlsyncCOM.UploadAckStatus _
)
Member of DbmlsyncCOM.Dbmlsync
Parameters

status   Indicates the status returned by MobiLink to the remote after the upload is processed. Its value is one of:

  • StatCommitted   Indicates that the upload was received by the MobiLink server and committed.

  • StatRetry   Indicates that the MobiLink server and the remote database had different values for the log offset from which the upload should start. The upload was not committed by the MobiLink server. The component attempts to send another upload starting from the MobiLink server's log offset.

  • StatFailed   Indicates that the MobiLink server did not commit the upload.

Remarks

Use this event to add custom actions after dbmlsync has received acknowledgement of the upload from the MobiLink server.

Example

The following Visual Basic .NET example outputs a message if the upload has failed when the UploadAck event is triggered.

Private Sub dbmlsync1_UploadAck(ByVal status As DbmlsyncCOM.UploadAckStatus) Handles dbmlsync1.UploadAck

    If status = DbmlsyncCOM.UploadAckStatus.StatFailed Then
         MsgBox("Upload Failed")
    End If

End Sub