Share via


ItemChange.AddChangeUnitChange Method

Adds a change unit change to this object.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
Public Sub AddChangeUnitChange ( _
    changeUnitChange As ChangeUnitChange _
)
'Usage
Dim instance As ItemChange
Dim changeUnitChange As ChangeUnitChange

instance.AddChangeUnitChange(changeUnitChange)
public void AddChangeUnitChange(
    ChangeUnitChange changeUnitChange
)
public:
void AddChangeUnitChange(
    ChangeUnitChange^ changeUnitChange
)
member AddChangeUnitChange : 
        changeUnitChange:ChangeUnitChange -> unit 
public function AddChangeUnitChange(
    changeUnitChange : ChangeUnitChange
)

Parameters

Exceptions

Exception Condition
ArgumentNullException

changeUnitChange is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

changeUnitChange has a parent change.

InvalidOperationException

This ItemChange is a deletion, represents an item that no longer exists, or changeUnitChange represents an unexpected change unit..

Remarks

This method has the following side effects:

  • It sets ChangeVersion to a null reference (Nothing in Visual Basic).

  • It sets the ParentChange property of changeUnitChange to be this object.

If ChangeKind is set to Deleted when this method is called, InvalidOperationException is thrown.

See Also

Reference

ItemChange Class

Microsoft.Synchronization Namespace