Returns the exit code from synchronizations started by the most recent Run method invocation.
Public Property ExitCode( ) As Integer
Member of DbmlsyncCOM.Dbmlsync
The ExitCode property returns the exit code for the synchronizations started by the last Run method invocation. 0 indicates successful synchronizations. Any other value indicates that a synchronization failed.
Retrieving the value of this property before the DoneExecution event is triggered may result in a meaningless exit code value.
The following example displays the exit code from the most recent synchronization attempt when the DoneExecution event is triggered.
Private Sub dbmlsync1_DoneExecution() Handles dbmlsync1.DoneExecution MsgBox(dbmlsync1.ExitCode) End Sub