SimpleSyncProvider.ItemConstraint Event

SQL Server 2008 R2

Occurs when Sync Framework detects that an item being processed is involved in a constraint conflict.

Namespace: Microsoft.Synchronization.SimpleProviders
Assembly: Microsoft.Synchronization.SimpleProviders (in microsoft.synchronization.simpleproviders.dll)

public event EventHandler<SimpleSyncItemConstraintEventArgs> ItemConstraint
/** @event */
public void add_ItemConstraint (EventHandler<SimpleSyncItemConstraintEventArgs> value)

/** @event */
public void remove_ItemConstraint (EventHandler<SimpleSyncItemConstraintEventArgs> value)

JScript supports the use of events, but not the declaration of new ones.

This event is used for constraint conflicts, which occur when an item cannot be saved because it conflicts with another item in the destination store, such as when the source provider sends a file that has the same name and location as a file that already exists in the destination replica. For more information, see Handling Conflicts for Simple Providers.