ItemConstraintEventArgs.SetResolutionAction Method (ChangeUnitChange, ConstraintConflictResolutionAction)
Sets a conflict resolution action for the conflicting change unit change.
Namespace: Microsoft.Synchronization
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Syntax
'Declaration
Public Overridable Sub SetResolutionAction ( _
changeUnitChange As ChangeUnitChange, _
resolutionAction As ConstraintConflictResolutionAction _
)
'Usage
Dim instance As ItemConstraintEventArgs
Dim changeUnitChange As ChangeUnitChange
Dim resolutionAction As ConstraintConflictResolutionAction
instance.SetResolutionAction(changeUnitChange, _
resolutionAction)
public virtual void SetResolutionAction(
ChangeUnitChange changeUnitChange,
ConstraintConflictResolutionAction resolutionAction
)
public:
virtual void SetResolutionAction(
ChangeUnitChange^ changeUnitChange,
ConstraintConflictResolutionAction resolutionAction
)
abstract SetResolutionAction :
changeUnitChange:ChangeUnitChange *
resolutionAction:ConstraintConflictResolutionAction -> unit
override SetResolutionAction :
changeUnitChange:ChangeUnitChange *
resolutionAction:ConstraintConflictResolutionAction -> unit
public function SetResolutionAction(
changeUnitChange : ChangeUnitChange,
resolutionAction : ConstraintConflictResolutionAction
)
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.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | changeUnitChange is a null reference (Nothing in Visual Basic). |
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. |