ReplicaMetadata::GetFullEnumerationLocalVersions Method
When overridden in a derived class, gets a change batch that contains the versions of items and change units stored in this replica that correspond to the items and change units referred to in a batch of changes that are sent from some other provider, as part of a full enumeration.
Assembly: Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)
public: virtual IEnumerable<ItemChange^>^ GetFullEnumerationLocalVersions( FullEnumerationChangeBatch^ sourceChanges ) abstract
Parameters
- sourceChanges
- Type: Microsoft.Synchronization::FullEnumerationChangeBatch
The batch of source changes about to be applied.
Return Value
Type: System.Collections.Generic::IEnumerable<ItemChange>A change batch that contains the versions of items and change units stored in this replica that correspond to the items and change units referred to in a batch of changes that are sent from some other provider, as part of a full enumeration.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The object has been disposed or was not initialized correctly. |
| ArgumentNullException | sourceChanges is a nullptr. |
This method helps a synchronization provider implement its ProcessFullEnumerationChangeBatch method.
Change appliers use the versions in the batch of changes that are returned from this method for conflict detection.
Notes to ImplementersThe change batch that is returned from this method must contain one entry for every item that has an item ID between the lower and upper bounds specified in sourceChanges, including change unit entries. If an item exists in the item store, its entry must contain its version information for this replica. If an item does not exist, its version must be set to SyncVersion.UnknownVersion and its P:Microsoft.Synchronization.ItemChange.ChangeKind property must be set to UnknownItem.