ChangeUnitVersionDefinition Class
Represents the set of fields that the Sync Framework runtime uses to determine whether a change unit's version should be updated.
Assembly: Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)
The ChangeUnitVersionDefinition type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | ChangeUnitVersionDefinition | Initializes a new instance of the ChangeUnitVersionDefinition class that contains the specified ID format, change unit ID, and version field ID. |
| Name | Description | |
|---|---|---|
![]() | ChangeUnitId | Gets a SyncId object that contains the ID of the change unit to which the version definition applies. |
![]() | VersionFieldIds | Gets a collection of integers that comprise the version fields of the specified change unit. |
This class is required only if your application requires change unit detection and synchronization. A change unit represents a sub-item change, such as the telephone number field in an item that represents a contact. If changes are synchronized at the level of a change unit instead of an item, Sync Framework must be able to identify the change unit in the item store and map that identity to an internal ID in the metadata store. It must also be able to determine if the change unit version has changed since the last synchronization session. If the version has changed and the destination replica does not already contain that version of a change unit, the change unit should be synchronized. For more information about simple provider metadata, see Managing Metadata for Simple Providers.
