ItemConstraintEventArgs::SetResolutionAction Method (ChangeUnitChange, ConstraintConflictResolutionAction)
Sets a conflict resolution action for the conflicting change unit change.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
public: virtual void SetResolutionAction( ChangeUnitChange^ changeUnitChange, ConstraintConflictResolutionAction resolutionAction )
Parameters
- changeUnitChange
- Type: Microsoft.Synchronization::ChangeUnitChange
The change unit for which to set the conflict resolution action.
- resolutionAction
- Type: Microsoft.Synchronization::ConstraintConflictResolutionAction
The conflict resolution action to set for changeUnitChange.
| Exception | Condition |
|---|---|
| ArgumentNullException | changeUnitChange is a nullptr. |
| ArgumentException | changeUnitChange is not valid. |
| ArgumentException | The conflict reason is not Other, or resolutionAction is set to a value other than SkipChange or SaveConflict. |
| SyncInvalidOperationException | The conflict contains no change units, or the change unit specified by changeUnitChange cannot be found. |
Show: