Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Added four new methods:

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

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

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

  4. 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 to suppress real-time graphic area updates and to improve the document modification performance.
For this document’s database modification work should be done in between Start and End transactions method calling. All modification in graphic area will get updated in one shot after calling of EndTransaction() method.
AbortTransaction() method will be used to abort all the modification done inside document database after calling of StartTransaction();
New COM sample project “UseOfTransaction” has been added into the ARES samples.

  • No labels