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);
}
/** @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.
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
SimpleSyncProvider Members
Microsoft.Synchronization.SimpleProviders Namespace