SyncKnowledge::Contains Method (SyncId, SyncId, SyncId, SyncVersion)
Indicates whether the specified change unit change is known by this knowledge.
Assembly: Microsoft.Synchronization (in Microsoft.Synchronization.dll)
public: bool Contains( SyncId^ replicaId, SyncId^ itemId, SyncId^ changeUnitId, SyncVersion^ changeVersion )
Parameters
- replicaId
- Type: Microsoft.Synchronization::SyncId
The ID of the replica that originated this change.
- itemId
- Type: Microsoft.Synchronization::SyncId
The ID of the item that was changed.
- changeUnitId
- Type: Microsoft.Synchronization::SyncId
The ID of the change unit that was changed.
- changeVersion
- Type: Microsoft.Synchronization::SyncVersion
The version for the change.
| Exception | Condition |
|---|---|
| InvalidOperationException | This SyncKnowledge object is not initialized. |
| ArgumentNullException | replicaId, itemId,changeUnitId, or changeVersion or is a nullptr. |
| SyncIdFormatMismatchException | replicaId, itemId, or changeUnitId is not in the ID format specified for this knowledge object. |
Show: