Share via


ISyncKnowledge2::ContainsKnowledgeForItem

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

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

Parameters

Term

Definition

pKnowledge

[in] The knowledge object that contains knowledge about pbItemId.

pbItemId

[in] The ID of the item to look up.

Return Value

  • S_OK when this object contains the knowledge known by pKnowledge about pbItemId.

  • S_FALSE when this object does not contain the knowledge known by pKnowledge about pbItemId.

  • E_POINTER

  • SYNC_E_ID_FORMAT_MISMATCH when 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.

See Also

Reference

ISyncKnowledge2 Interface