OLE DB Programmer's Reference |
Compares two row handles to see whether they refer to the same row instance.
HRESULT IsSameRow ( HROW hThisRow, HROW hThatRow);
Parameters
Return Code
Comments
This method makes no logical change to the state of the object.
The row handles refer to the same row instance if the value set in any column in the row by means of one row handle will be the value returned for that column when gotten through the other row handle.
Rowsets that support this interface must also implement the detection of row identity within their rowset. That is, if they fetch rows at different times, they can detect when the row handles are referring to the same logical row and arrange for both row handles to reflect the same data and state.
The value of the row handlestheir bit patterns as handlesis not necessarily the same if the underlying row is the same. This depends on the value of the DBPROP_LITERALIDENTITY property.
The outcome of IRowsetIdentity::IsSameRow is not changed when one or both of its parameters correspond to a row with a pending delete.
1998-2001 Microsoft Corporation. All rights reserved.