Sdílet prostřednictvím


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
)
public void SetResolutionAction (
    ChangeUnitChange changeUnitChange, 
    ConstraintConflictResolutionAction resolutionAction
)
public function SetResolutionAction (
    changeUnitChange : ChangeUnitChange, 
    resolutionAction : ConstraintConflictResolutionAction
)

Parameters

  • changeUnitChange
    The change unit for which to set the conflict resolution action.
  • resolutionAction
    The conflict resolution action to set for changeUnitChange.

Exceptions

Exception type 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.

See Also

Reference

ItemConstraintEventArgs Class
ItemConstraintEventArgs Members
Microsoft.Synchronization Namespace