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
)
abstract OnItemConstraint :
args:SimpleSyncItemConstraintEventArgs -> unit
override OnItemConstraint :
args:SimpleSyncItemConstraintEventArgs -> unit
public function OnItemConstraint(
args : SimpleSyncItemConstraintEventArgs
)
Parameters
- args
Type: Microsoft.Synchronization.SimpleProviders.SimpleSyncItemConstraintEventArgs
A SimpleSyncItemConstraintEventArgs object that contains event data.
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.