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
SystemObject
  SystemMarshalByRefObject
    Teigha.RuntimeDisposableWrapper
      Teigha.RuntimeRXObject
        Teigha.DatabaseServicesTransaction
          Teigha.DatabaseServicesOpenCloseTransaction

Namespace: Teigha.DatabaseServices
Assembly: TD_Mgd (in TD_Mgd.dll) Version: 26.9.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 underlying C++ OdMgOpenCloseTransaction class.
Top
Properties
  Name Description
Public property AutoDelete Property that indicates whether the object should be automatically deleted by the Garbage Collector.
(Inherited from DisposableWrapper)
Public property IsDisposed Property that indicates whether pointer to native code unmanaged object == IntPtr::Zero.
(Inherited from DisposableWrapper)
Public property NumberOfOpenedObjects Indicates how many objects are being opened within this transaction.
(Inherited from Transaction)
Public property TransactionManager Represents the transaction manager associated with this transaction.
(Overrides TransactionTransactionManager)
Public property UnmanagedObject Property that represents a pointer to an unmanaged object.
(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.
(Overrides TransactionAddNewlyCreatedDBObject(DBObject, Boolean))
Public method Clone Creates a *clone* of this object, and returns a pointer to the *clone*.
(Inherited from RXObject)
Public method Commit Commits the changes made to all objects opened during the OpenCloseTransaction, and then closes them.
(Overrides TransactionCommit)
Public method CompareTo Allows classes to compare class objects.
(Inherited from RXObject)
Public method CopyFrom Copies the contents of the specified object into this object.
(Inherited from RXObject)
Public method CreateObjRef
(Inherited from MarshalByRefObject)
Protected method DeleteUnmanagedObject
(Overrides TransactionDeleteUnmanagedObject)
Public method Dispose
(Inherited from DisposableWrapper)
Protected method Dispose(Boolean)
(Inherited from DisposableWrapper)
Public method Equals Checks objects for equality.
(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 Retrieves the object hash code.
(Inherited from DisposableWrapper)
Public method GetLifetimeService
(Inherited from MarshalByRefObject)
Public method GetMetaObject
(Inherited from RXObject)
Public method GetObject(ObjectId, OpenMode) Calls the OpenObject() method of the underlying 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 underlying 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 underlying C++ object for the passed id within the specified open mode.
(Overrides TransactionGetObject(ObjectId, OpenMode, Boolean, Boolean))
Public method GetRXClass Gets a class describing instance dynamically associated with this object as the OdRxClass object.
(Inherited from RXObject)
Public method GetType
(Inherited from Object)
Public method InitializeLifetimeService
(Inherited from MarshalByRefObject)
Protected method MemberwiseClone
(Inherited from Object)
Protected method MemberwiseClone(Boolean)
(Inherited from MarshalByRefObject)
Public method QueryX Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class.
(Inherited from RXObject)
Public method ToString
(Inherited from Object)
Public method X Checks whether the object belongs to the specified class and returns a pointer to this object if this object can be converted to the specified class, or throws an exception if it cannot.
(Inherited from RXObject)
Top
See Also

©  Bricsys NV. All rights reserved.