IRepositoryTransaction::Flush
This method flushes cached changes to the repository database.
Unless you have set the exclusive-write-through-mode transaction option, changes that you make within the scope of a transaction are cached, and they are not written to the database until the transaction is committed. If a concurrent SQL query is run against the repository database, the result of the query will not reflect the uncommitted changes. Typically, this is the desired behavior.
If your repository application must be able to see uncommitted changes in SQL queries, you can use the Flush method to write uncommitted changes to the repository database. All changes made within the scope of the current transaction are flushed. Flushing uncommitted changes does not affect your ability to cancel a transaction through the Abort method.
Syntax
HRESULT Flush(void);
Return Value
S_OK
The method completed successfully.
This method failed to complete successfully.