Share via


IRowsetUpdateImpl::IsUpdateAllowed

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at IRowsetUpdateImpl::IsUpdateAllowed.

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

Syntax

  
      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

IRowsetUpdateImpl Class