Share via


ISyncKnowledge2::ContainsKnowledgeForChangeUnit

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

HRESULT ContainsKnowledgeForChangeUnit(
  ISyncKnowledge * pKnowledge,
  const BYTE * pbItemId,
  const BYTE * pbChangeUnitId);

Parameters

Term

Definition

pKnowledge

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

pbItemId

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

pbChangeUnitId

[in] The ID of the change unit to look up.

Return Value

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

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

  • E_POINTER.

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

See Also

Reference

ISyncKnowledge2 Interface