ISyncKnowledge::ContainsChangeUnit method (winsync.h)

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

Syntax

HRESULT ContainsChangeUnit(
  [in] const BYTE         *pbVersionOwnerReplicaId,
  [in] const BYTE         *pbItemId,
  [in] const BYTE         *pbChangeUnitId,
  [in] const SYNC_VERSION *pSyncVersion
);

Parameters

[in] pbVersionOwnerReplicaId

The ID of the replica that originated the change unit change.

[in] pbItemId

The ID of the item that contains the change unit to look up.

[in] pbChangeUnitId

The ID of the change unit to look up.

[in] pSyncVersion

The version of the change unit change to look up.

Return value

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The specified change unit change is contained in the knowledge.
S_FALSE
The specified change unit change is not contained in the knowledge.
E_INVALIDARG

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winsync.h

See also

ISyncKnowledge Interface

SYNC_VERSION Structure