OpenCloseTransaction Class

This .NET class wraps the OdMgOpenCloseTransaction class. The OpenCloseTransaction class may be used instead of the Transaction class in certain scenarios. It wraps the ObjectId.Open/Close methods but makes it easier to correctly pair these methods by storing references to every object opened and automatically closing them.
Inheritance Hierarchy
Namespace:  Teigha.DatabaseServices
Assembly:  TD_Mgd (in TD_Mgd.dll) Version: 21.4.0.0
Syntax
public class OpenCloseTransaction : Transaction

The OpenCloseTransaction type exposes the following members.

Constructors
  Name Description
Public method OpenCloseTransaction
Default constructor for the OpenCloseTransaction class. Creates the OpenCloseTransaction object based on the underlaying C++ OdMgOpenCloseTransaction class.
Top
Properties
  Name Description
Public property AutoDelete (Inherited from DisposableWrapper.)
Public property IsDisposed (Inherited from DisposableWrapper.)
Public property TransactionManager
Represents the transaction manager associated with this transaction.
(Overrides TransactionTransactionManager.)
Public property UnmanagedObject (Inherited from DisposableWrapper.)
Top
Methods
  Name Description
Public method Abort
Aborts the currently open transaction. This method initiates a rollback of all changes to objects since the start of the transaction.
(Overrides TransactionAbort.)
Public method AddNewlyCreatedDBObject
Adds a newly created database record object.
(Inherited from Transaction.)
Public method Clone (Inherited from RXObject.)
Public method Commit
Commits the changes made in all objects opened during the OpenCloseTransaction, and then closes them.
(Overrides TransactionCommit.)
Public method CompareTo (Inherited from RXObject.)
Public method CopyFrom (Inherited from RXObject.)
Public method CreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Protected method DeleteUnmanagedObject (Overrides TransactionDeleteUnmanagedObject.)
Public method Dispose (Inherited from DisposableWrapper.)
Protected method Dispose(Boolean) (Inherited from DisposableWrapper.)
Public method Equals (Inherited from DisposableWrapper.)
Protected method Finalize (Inherited from DisposableWrapper.)
Public method GetAllObjects
Retrieves all objects that are open in this transaction.
(Inherited from Transaction.)
Public method GetHashCode (Inherited from DisposableWrapper.)
Public method GetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public method GetObject(ObjectId, OpenMode)
Calls the OpenObject() method of the underlaying C++ object for the passed id within the specified open mode.
(Overrides TransactionGetObject(ObjectId, OpenMode).)
Public method GetObject(ObjectId, OpenMode, Boolean)
Calls the OpenObject() method of the underlaying C++ object for the passed id within the specified open mode.
(Overrides TransactionGetObject(ObjectId, OpenMode, Boolean).)
Public method GetObject(ObjectId, OpenMode, Boolean, Boolean)
Calls the OpenObject() method of the underlaying C++ object for the passed id within the specified open mode.
(Overrides TransactionGetObject(ObjectId, OpenMode, Boolean, Boolean).)
Public method GetRXClass (Inherited from RXObject.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method InitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected method MemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public method QueryX (Inherited from RXObject.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)
Public method X (Inherited from RXObject.)
Top
See Also

©  Bricsys NV. All rights reserved.