Visual Basic Reference

Resync Method (Remote Data)

See Also    Example    Applies To

Fetches the batch conflict values for the current row.

Syntax

object.Resync

The object placeholder represents an object expression that evaluates to an object in the Applies To list.

Remarks

The Resync method is valid only when using Client-Batch Cursors.

Resync resynchronizes the columns in the current row in the cursor library with the current data on the server (visible to your transaction). If you have not modified the row, this method changes the Value and OriginalValue properties to match what is currently on the server.

If you have modified the row, this method will only adjust the OriginalValue property so as not to loose your edits. This second case is useful when you want to avoid an optimistic concurrency conflict.

The last case where this is used is when you're dealing with a row that you attempted to update using BatchUpdate, but a conflict occurred because the concurrency check failed. In this case, this method will adjust the BatchConflictValue to reflect the most recent version of the column on the server.