IDifferenceCursorEx Interface

Provides access to members that control the difference cursor.

Description

The IDifferenceCursorEx interface returns a cursor of OIDsand two IRowsbased upon the difference type used with IDataChangesEx::ExtractEx.

Members

Name Description
Method Next Returns the source row, the difference row and an array with indices of fields with different values.

IDifferenceCursorEx.Next Method

Returns the source row, the difference row and an array with indices of fields with different values.

Public Sub Next ( _
    ByRef OID As Integer, _
    ByRef SourceRow As IRow, _
    ByRef differenceRow As IRow, _
    ByRef differentValueIndices As ILongArray _
)
public void Next (
    ref int OID,
    ref IRow SourceRow,
    ref IRow differenceRow,
    ref ILongArray differentValueIndices
);

Remarks

The Next method can be used to populate two IRow__objects corresponding to the _SourceRow, DifferenceRow_and a LongArraycorresponding to the field index values.

IRowobjects returned from a difference cursor are meant to be a read only. If row editing is desired the OID returned from the call to IDifferenceCursorEx::NextRow should be used in a call to the ITable::GetRow or ITable::GetRows methods.

Classes that implement IDifferenceCursorEx

Classes Description

Remarks

The set of object IDs returned is dependant on the difference type category. For example, if the difference type DeleteNoChangeis applied, the cursor will be nothing since the row no longer exists. In this case, it is necessary to enumerate until the returned OID equals -1. Use the OID returned in the cursor to retrieve the row in the other version of the table where the row has not been deleted yet.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.