SaveChangeContext.RecordConstraintConflictForItem Method (ConstraintConflictReason)
Reports that a constraint conflict occurred when the destination provider tried to apply the change to the destination replica.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in microsoft.synchronization.dll)
Syntax
'Declaration
Public Sub RecordConstraintConflictForItem ( _
reason As ConstraintConflictReason _
)
'Usage
Dim instance As SaveChangeContext
Dim reason As ConstraintConflictReason
instance.RecordConstraintConflictForItem(reason)
public void RecordConstraintConflictForItem (
ConstraintConflictReason reason
)
public:
void RecordConstraintConflictForItem (
ConstraintConflictReason reason
)
public void RecordConstraintConflictForItem (
ConstraintConflictReason reason
)
public function RecordConstraintConflictForItem (
reason : ConstraintConflictReason
)
Parameters
- reason
The reason the conflict occurred.
Exceptions
Exception type | Condition |
---|---|
reason is Collision. In this case, a conflicting item ID must be specified by using RecordConstraintConflictForItem |
|
A constraint conflict or recoverable error has already been set on this object. |
See Also
Reference
SaveChangeContext Class
SaveChangeContext Members
Microsoft.Synchronization Namespace