Поделиться через


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( );

Параметры

  • 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.

Требования

Header: atldbcli.h

См. также

Основные понятия

CRowset Class

CRowset Members

IRowsetUpdate::Undo