Revit 2025 API
Sub |
Determines whether the sub-transaction has ended already.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public bool HasEnded()
Public Function HasEnded As Boolean
public: bool HasEnded()
member HasEnded : unit -> bool
Return Value
BooleanTrue if the sub-transaction has already been committed or rolled back, False otherwise.

A sub-transaction is ended by completing either the Commit
or RollBack method.
Another way of testing whether a sub-transaction has ended is by testing
its current status returned from (see GetStatus). It must be either
'TransactionStatus.Committed' or 'TransactionStatus.RolledBack'
See Also