2024 Method
Changes 0
M

SubTransaction.Commit

Description:
Commits all changes made to the model made during the sub-transaction.
Remarks:

The changes are not permanently committed to the document yet. They will be committed only when the active transaction is committed. If the transaction is rolled back instead, the changes committed during this sub-transaction will be discarded.

Commit can be called only when all inner sub-transactions, if any, are already finished, i.e. they were either committed or rolled back. If there is still a sub-transaction open, an attempt to commit this outer sub-transaction will cause an exception.

public TransactionStatus Commit()
TransactionStatus If finished successfully, this method returns TransactionStatus.Committed