IRepositoryTransaction::get_Status

Meta Data Services Programming

Meta Data Services Programming

IRepositoryTransaction::get_Status

This method determines whether there is a currently active transaction.

Syntax

HRESULT get_Status(long    *piStatus);

Parameters

*piStatus

[out]
The current transaction status. If the value is zero, no transaction is active. If the value is nonzero, a transaction is active.

Return Value

S_OK

The method completed successfully.

Error Values

This method failed to complete successfully.

Remarks

A transaction is considered active until the Commit method has successfully executed and the nested transaction count has been decremented to zero. Depending on the data-flushing capabilities of the underlying database server, the data associated with a committed transaction may or may not be written to the physical storage device when the Commit method returns control to its caller.

See Also

IRepositoryTransaction Interface

IRepositoryTransaction::Commit