Export (0) Print
Expand All

CRowset::Undo 

Undoes any changes made to a row since the last fetch or Update.


HRESULT Undo( 
   DBCOUNTITEM* pcRows = NULL, 
   HROW* phRow = NULL, 
   DBROWSTATUS* pStatus = NULL  
) throw( );

Parameters

pcRows

[out] A pointer to the location where Undo returns the number of rows it attempted to undo if required.

phRow

[out] A pointer to the location where Undo returns an array of handles to all rows it attempted to undo if required.

pStatus

[out] A pointer to the location where Undo returns the row status value. No status is returned if pStatus is null.

A standard HRESULT.

This method requires the optional interface IRowsetUpdate, which might not be supported on all providers; if this is the case, the method returns E_NOINTERFACE. You must also set DBPROP_IRowsetUpdate to VARIANT_TRUE before calling Open on the table or command containing the rowset.

Community Additions

ADD
Show:
© 2014 Microsoft