ISyncKnowledge2::ContainsKnowledgeForItem method (winsync.h)

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

Syntax

HRESULT ContainsKnowledgeForItem(
  [in] ISyncKnowledge *pKnowledge,
  [in] const BYTE     *pbItemId
);

Parameters

[in] pKnowledge

The knowledge object that contains knowledge about pbItemId.

[in] pbItemId

The ID of the item 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
This object contains the knowledge known by pKnowledge about pbItemId.
S_FALSE
This object does not contain the knowledge known by pKnowledge about pbItemId.
E_POINTER
Invalid pointer.
SYNC_E_ID_FORMAT_MISMATCH
pbItemId is not of the format specified by the provider.

Remarks

Another way to obtain the same result is to pass pbItemId to the ISyncKnowledge::ProjectOntoItem 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

See also

ISyncKnowledge Interface

ISyncKnowledge2 Interface