Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets a ResolveAction enumeration value that specifies the action to take when a ClientUpdateServerUpdate conflict occurs.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in microsoft.synchronization.data.dll)
Syntax
'Declaration
Public Property ClientUpdateServerUpdateAction As ResolveAction
'Usage
Dim instance As SyncConflictResolver
Dim value As ResolveAction
value = instance.ClientUpdateServerUpdateAction
instance.ClientUpdateServerUpdateAction = value
public ResolveAction ClientUpdateServerUpdateAction { get; set; }
public:
property ResolveAction ClientUpdateServerUpdateAction {
ResolveAction get ();
void set (ResolveAction value);
}
/** @property */
public ResolveAction get_ClientUpdateServerUpdateAction ()
/** @property */
public void set_ClientUpdateServerUpdateAction (ResolveAction value)
public function get ClientUpdateServerUpdateAction () : ResolveAction
public function set ClientUpdateServerUpdateAction (value : ResolveAction)
Property Value
A ResolveAction enumeration value that specifies the action to take when a ClientUpdateServerUpdate conflict occurs.
Example
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.
this.ConflictResolver.ClientDeleteServerUpdateAction = ResolveAction.ServerWins;
this.ConflictResolver.ClientUpdateServerDeleteAction = ResolveAction.ClientWins;
//If any of the following conflicts or errors occur, the ApplyChangeFailed
//event is raised.
this.ConflictResolver.ClientInsertServerInsertAction = ResolveAction.FireEvent;
this.ConflictResolver.ClientUpdateServerUpdateAction = ResolveAction.FireEvent;
this.ConflictResolver.StoreErrorAction = ResolveAction.FireEvent;
//Log information for the ApplyChangeFailed event and handle any
//ResolveAction.FireEvent cases.
this.ApplyChangeFailed +=new EventHandler<ApplyChangeFailedEventArgs>(SampleClientSyncProvider_ApplyChangeFailed);
Me.ConflictResolver.ClientDeleteServerUpdateAction = ResolveAction.ServerWins
Me.ConflictResolver.ClientUpdateServerDeleteAction = ResolveAction.ClientWins
'If any of the following conflicts or errors occur, the ApplyChangeFailed
'event is raised.
Me.ConflictResolver.ClientInsertServerInsertAction = ResolveAction.FireEvent
Me.ConflictResolver.ClientUpdateServerUpdateAction = ResolveAction.FireEvent
Me.ConflictResolver.StoreErrorAction = ResolveAction.FireEvent
'Log information for the ApplyChangeFailed event and handle any
'ResolveAction.FireEvent cases.
AddHandler Me.ApplyChangeFailed, AddressOf SampleClientSyncProvider_ApplyChangeFailed
See Also
Reference
SyncConflictResolver Class
SyncConflictResolver Members
Microsoft.Synchronization.Data Namespace