Revit 2018 API |
TransactionGroup..::..HasEnded Method |
TransactionGroup Class See Also |
Determines whether the transaction group has ended already.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 18.0.0.0 (18.2.0.13)
Since:
2011
Syntax
C# |
---|
public bool HasEnded() |
Visual Basic |
---|
Public Function HasEnded As Boolean |
Visual C++ |
---|
public: bool HasEnded() |
Return Value
True if the transaction group has already been committed or rolled back, False otherwise.
Remarks
A transaction is ended by completing either the Commit
or RollBack or Assimilate method.
Another way of testing whether a transaction group has ended is by testing
its current status returned from (see GetStatus()()()()). It must be either
'TransactionStatus.Committed' or 'TransactionStatus.RolledBack'