Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Added four Four new methods:

  • StartTransaction(): Starts a new transaction of this document.
    HRESULT StartTransaction();

  • EndTransaction(): Ends the current transaction associated with this document.
    HRESULT EndTransaction();

  • AbortTransaction(): Aborts the current transaction associated with this document.
    HRESULT AbortTransaction();

  • NumActiveTransactions(): Returns the number of active transactions associated with this document.
    HRESULT NumActiveTransactions( [ out, retval ] int* pTransaction );

These methods can be used by 3rdparty application applications to suppress real-time graphic area updates and to improve the document modification performance.
For this Changes of the document’s database modification work should be done in between are included between calls of the Start and End transactions method callingmethods. All modification in graphic the graphics area will get are updated in one shot after calling of the EndTransaction() method.
AbortTransaction() method will be used to abort all the modification cancels all changes done inside the document database after calling of StartTransaction();
New COM sample project “UseOfTransaction” has been added into the is available along with existing ARES samples.