SimpleSyncProvider.OnItemConstraint Method

When overridden in a derived class, raises the ItemConstraint event.

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

Syntax

'Declaration
Public Overridable Sub OnItemConstraint ( _
    args As SimpleSyncItemConstraintEventArgs _
)
'Usage
Dim instance As SimpleSyncProvider
Dim args As SimpleSyncItemConstraintEventArgs

instance.OnItemConstraint(args)
public virtual void OnItemConstraint (
    SimpleSyncItemConstraintEventArgs args
)
public:
virtual void OnItemConstraint (
    SimpleSyncItemConstraintEventArgs^ args
)
public void OnItemConstraint (
    SimpleSyncItemConstraintEventArgs args
)
public function OnItemConstraint (
    args : SimpleSyncItemConstraintEventArgs
)

Parameters

Remarks

This method 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