Udostępnij za pośrednictwem


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
'Usage
Dim instance As DbSyncConflict
Dim value As DataTable

value = instance.LocalChange
public DataTable LocalChange { get; }
public:
property DataTable^ LocalChange {
    DataTable^ get ();
}
/** @property */
public DataTable get_LocalChange ()
public function get LocalChange () : DataTable

Property Value

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 Collaborative 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.

Example

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

See Also

Reference

DbSyncConflict Class
DbSyncConflict Members
Microsoft.Synchronization.Data Namespace