Determines whether the sub-transaction has ended already.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2011
Syntax
C# |
---|
public bool HasEnded() |
Visual Basic |
---|
Public Function HasEnded As Boolean |
Visual C++ |
---|
public: bool HasEnded() |
Return Value
True if the sub-transaction has already been committed or rolled back, False otherwise.
Remarks
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'