Share via


DbSyncConflict.LocalChange Property

Gets the DataTable object that contains the conflicting rows from the local database.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public ReadOnly Property LocalChange As DataTable
    Get
'Usage
Dim instance As DbSyncConflict
Dim value As DataTable

value = instance.LocalChange
public DataTable LocalChange { get; }
public:
property DataTable^ LocalChange {
    DataTable^ get ();
}
member LocalChange : DataTable
function get LocalChange () : DataTable

Property Value

Type: System.Data.DataTable
A DataTable object that contains the conflicting rows from the local database.

Remarks

The changes that are available through the LocalChange and RemoteChange objects depend on where a conflict was detected. For more information, see "Conflict and Error Detection" in How to: Handle Data Conflicts and Errors for Database Synchronization (SQL Server).

If an application must change data values during synchronization, use the DbSyncContext object instead of the DbSyncConflict object. The DbSyncConflict object contains copies of the rows at each peer. Changes to these copies are not persisted at each peer during synchronization.

Examples

For an example of how to handle conflicts, see How to: Handle Data Conflicts and Errors for Database Synchronization (SQL Server).

See Also

Reference

DbSyncConflict Class

Microsoft.Synchronization.Data Namespace