SetResolutionAction-Methode (ChangeUnitChange, ConstraintConflictResolutionAction)

Legt die Konfliktauflösungsaktion für die einen Konflikt verursachende Änderung der Änderungseinheit fest.

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
)

Parameter

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

changeUnitChange ist NULL.

ArgumentException

changeUnitChangeist ungültig.

ArgumentException

Die Konfliktursache ist nicht Other, oder resolutionAction wird auf einen anderen Wert als SkipChange oder SaveConflict festgelegt.

SyncInvalidOperationException

Der Konflikt enthält keine Änderungseinheiten, oder die von changeUnitChange angegebene Änderungseinheit kann nicht gefunden werden.

Siehe auch

Verweis

ItemConstraintEventArgs Klasse

ItemConstraintEventArgs-Member

SetResolutionAction-Überladung

Microsoft.Synchronization-Namespace