Share via


ISyncChangeBatchWithPrerequisite::GetLearnedKnowledgeWithPrerequisite

Gets the knowledge that the destination replica learns when the destination provider applies all the changes in this change batch, based on the prerequisite knowledge of the change batch.

Syntax

HRESULT GetLearnedKnowledgeWithPrerequisite(
  ISyncKnowledge * pDestinationKnowledge,
  ISyncKnowledge ** ppLearnedWithPrerequisiteKnowledge);

Parameters

Term

Definition

pDestinationKnowledge

[in] A knowledge fragment is added to the returned learned knowledge only if pDestinationKnowledge contains the prerequisite knowledge for that fragment.

ppLearnedWithPrerequisiteKnowledge

[out] Returns the knowledge that the destination replica learns when the destination provider applies all the changes in this change batch, based on the prerequisite knowledge of the change batch.

Return Value

  • S_OK

  • E_POINTER

Remarks

The knowledge that is returned in ppLearnedWithPrerequisiteKnowledge is computed by calling the ISyncKnowledge2::ProjectOntoKnowledgeWithPrerequisite method of the learned knowledge of the change batch, passing pDestinationKnowledge as the template knowledge.

See Also

Reference

ISyncChangeBatchWithPrerequisite Interface