SyncKnowledge::Contains Method (SyncId, SyncId, SyncVersion)

Indicates whether the specified item change is known by this knowledge.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public:
bool Contains(
	SyncId^ replicaId, 
	SyncId^ itemId, 
	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.
changeVersion
Type: Microsoft.Synchronization::SyncVersion
The version for the change.

Return Value

Type: System::Boolean
true if the item change is known. Otherwise, false.

ExceptionCondition
InvalidOperationException

This SyncKnowledge object is not initialized.

ArgumentNullException

replicaId, itemId, or changeVersion is a nullptr.

SyncIdFormatMismatchException

replicaId or itemId is not in the ID format specified for this knowledge object.

Show: