ISyncKnowledge2::ContainsKnowledgeForChangeUnit method (winsync.h)
Indicates whether the specified knowledge of the specified change unit is known by this knowledge.
Syntax
HRESULT ContainsKnowledgeForChangeUnit(
[in] ISyncKnowledge *pKnowledge,
[in] const BYTE *pbItemId,
[in] const BYTE *pbChangeUnitId
);
Parameters
[in] pKnowledge
The knowledge object that contains knowledge about pbChangeUnitId.
[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.
Return value
The possible return codes include, but are not limited to, the values shown in the following table.
Return code | Description |
---|---|
|
This object contains the knowledge known by pKnowledge about pbChangeUnitId. |
|
This object does not contain the knowledge known by pKnowledge about pbChangeUnitId. |
|
Invalid pointer. |
|
pbChangeUnitId is not of the format specified by the provider. |
Remarks
Another way to obtain the same result is to pass pbItemId and pbChangeUnitId to the ISyncKnowledge::ContainsChangeUnit method of pKnowledge, and then take the resulting projected knowledge and pass it to the ISyncKnowledge::ContainsKnowledge method of this object.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | winsync.h |