Udostępnij za pośrednictwem


DbSyncConflict.RemoteChange Property

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

Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)

Syntax

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

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

Property Value

A DataTable object that contains the conflicting rows from the remote 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