ResolveAction Enumeration

Synchronization Services - ADO.NET 1.0 SP1

Specifies the options for resolving any conflicts that occur at the client during synchronization.

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

public enum class ResolveAction
public enum ResolveAction
public enum ResolveAction

 Member nameDescription
ClientWinsOverwrite the row at the server with the row from the client. 
FireEventRaise the client ApplyChangeFailed event or the server ApplyChangeFailed event. 
ServerWinsOverwrite the row at the client with the row from the server. 

The SqlCeClientSyncProvider includes a ConflictResolver property that you can use to resolve conflicts on the client. For each type of conflict, you can set a value from the ResolveAction enumeration:

There is no requirement to set the ConflictResolver for each type of conflict. You can resolve conflicts as you do on the server, by handling the ApplyChangeFailed event. However, the ConflictResolver property does provide an easy way to specify conflict resolution options on the client. For more information, see How to: Handle Data Conflicts and Errors.

The following code example sets the resolution action for each type of conflict that the client synchronization provider can encounter. To view this code in the context of a complete example, see How to: Handle Data Conflicts and Errors.

No code example is currently available or this language may not be supported.
Show: