| EndTransaction Method | |
| See Also |
- endType
Indicates whether to save the data changes of the transaction.
Ends a global transaction that started with the StartTransaction method.
| Visual Basic |
|---|
Public Sub EndTransaction( _
ByVal endType As BoWfTransOpt _
) |
- endType
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:
- Troubleshoot and fix the exception.
- Call StartTransaction.
- Resubmit the changes (by calling the Add, Update, and Delete methods).
- Call EndTransaction.