Share via


ISyncChangeBatchBase::GetLearnedKnowledge

Gets the knowledge that the destination replica learns when the destination provider applies all the changes in this change batch.

HRESULT GetLearnedKnowledge(
  ISyncKnowledge ** ppLearnedKnowledge);

Parameters

  • ppLearnedKnowledge
    [out] Returns the knowledge that a replica will learn when a provider applies all the changes in this change batch to the replica. This knowledge is valid only when the current knowledge of the replica contains the prerequisite knowledge of the change batch. The prerequisite knowledge can be obtained by calling ISyncChangeBatchBase::GetPrerequisiteKnowledge.

Return Value

  • S_OK

  • E_POINTER

  • SYNC_E_INVALID_OPERATION when the last group added to the batch was not ended.

Remarks

GetLearnedKnowledge can be used by a provider that uses a custom change applier.

See Also

Reference

ISyncChangeBatchBase Interface
ISyncKnowledge Interface