ChangeBatchBase::AddChanges Method
Adds a specified set of item changes to the group that currently open
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
Parameters
- changes
- Type: System.Collections.Generic::IEnumerable<ItemChange>
A set of item changes to add to the group that is currently open.
| Exception | Condition |
|---|---|
| ChangeBatchIsReadOnlyException | The change batch has already been sent to a change applier or synchronization session. Changes cannot be added to the batch after it has been sent. |
| ArgumentNullException | changes is a nullptr. |
| ObjectDisposedException | This ChangeBatchBase has been disposed. |
| InvalidOperationException |
—or—
|
Before item changes can be added to a ChangeBatchBase object, a group must be opened by calling BeginOrderedGroup or the BeginUnorderedGroup method of the ChangeBatch object. Otherwise, this method throws InvalidOperationException.
Show: