Partager via


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.

Return Value

A standard HRESULT.

Remarks

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.

Requirements

Header: atldbcli.h

See Also

Reference

CRowset Class

IRowsetUpdate::Undo

Other Resources

CRowset Members