Transaction Members

The Transaction type exposes the following members.

Constructors

  NameDescription
Public methodTransaction(Document)
Instantiates a transaction object.
Public methodTransaction(Document, String)
Instantiates a transaction object

Methods

  NameDescription
Public methodCommit()()()()
Commits all changes made to the model during the transaction.
Public methodCommit(FailureHandlingOptions)
Commits all changes made to the model during the transaction.
Public methodDispose
Releases all resources used by the Transaction
Public methodEquals (Inherited from Object.)
Public methodGetFailureHandlingOptions
Returns the current failure handling options.
Public methodGetHashCode (Inherited from Object.)
Public methodGetName
Returns the transaction's name.
Public methodGetStatus
Returns the current status of the transaction.
Public methodGetType (Inherited from Object.)
Public methodHasEnded
Determines whether the transaction has ended already.
Public methodHasStarted
Determines whether the transaction has been started yet.
Public methodRollBack()()()()
Rolls back all changes made to the model during the transaction.
Public methodRollBack(FailureHandlingOptions)
Rolls back all changes made to the model during the transaction.
Public methodSetFailureHandlingOptions
Sets options for handling failures to be used when the transaction is being committed or rolled back.
Public methodSetName
Sets the transaction's name.
Public methodStart()()()()
Starts the transaction.
Public methodStart(String)
Starts the transaction with an assigned name.
Public methodToString (Inherited from Object.)

Properties

  NameDescription
Public propertyIsValidObject
Specifies whether the .NET object represents a valid Revit entity.

See Also