Compartilhar via


IRowsetUpdateImpl::IsUpdateAllowed

Override this method to check for security, integrity, and so on before updates.

HRESULT IsUpdateAllowed( 
   DBPENDINGSTATUS /* [in] *//* status */, 
   HROW /* [in] *//* hRowUpdate */, 
   DBROWSTATUS* /* [out] *//* pRowStatus */ 
);

Parameters

  • status
    [in] The status of pending operations on the rows.

  • hRowUpdate
    [in] Handle for the rows the user wants to update.

  • pRowStatus
    [out] The status returned to the user.

Remarks

If you determine that an update should be allowed, returns S_OK; otherwise returns E_FAIL. If you allow an update, you also need to set the DBROWSTATUS in IRowsetUpdateImpl::Update to an appropriate row state.

Requirements

Header: atldb.h

See Also

Reference

IRowsetUpdateImpl Class