ItemChange::AddChangeUnitChange Method
Adds a change unit change to this object.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
| Exception | Condition |
|---|---|
| ArgumentNullException | changeUnitChange is a nullptr. |
| 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.. |
This method has the following side effects:
It sets ChangeVersion to a nullptr.
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.
Show: