Share via


SimpleSyncProvider.ItemConstraint Event

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)

Syntax

'Declaration
Public Event ItemConstraint As EventHandler(Of SimpleSyncItemConstraintEventArgs)
'Usage
Dim instance As SimpleSyncProvider
Dim handler As EventHandler(Of SimpleSyncItemConstraintEventArgs)

AddHandler instance.ItemConstraint, handler
public event EventHandler<SimpleSyncItemConstraintEventArgs> ItemConstraint
public:
 event EventHandler<SimpleSyncItemConstraintEventArgs^>^ ItemConstraint {
    void add (EventHandler<SimpleSyncItemConstraintEventArgs^>^ value);
    void remove (EventHandler<SimpleSyncItemConstraintEventArgs^>^ value);
}
member ItemConstraint : IEvent<EventHandler<SimpleSyncItemConstraintEventArgs>,
    SimpleSyncItemConstraintEventArgs>
JScript supports the use of events, but not the declaration of new ones.

Remarks

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.

See Also

Reference

SimpleSyncProvider Class

Microsoft.Synchronization.SimpleProviders Namespace