Ends a global transaction that started with the StartTransaction method.
| Visual Basic |
|---|
Public Sub EndTransaction( _ ByVal endType As BoWfTransOpt _ ) |
| Value | Description |
|---|---|
| wf_RollBack | Rolls back the transaction so that the data is discarded. |
| wf_Commit | Commits the transaction so that the data is saved. |
Indicates whether to save the data changes of the transaction.
You can only use the StartTransaction and EndTransaction methods when the connection with the database is active.
If an exception occurs when you call EndTransaction, the changes are not committed. To correct this: