ISyncChangeBatchWithPrerequisite::GetLearnedKnowledgeWithPrerequisite method (winsync.h)

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(
  [in]  ISyncKnowledge *pDestinationKnowledge,
  [out] ISyncKnowledge **ppLearnedWithPrerequisiteKnowledge
);

Parameters

[in] pDestinationKnowledge

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

[out] ppLearnedWithPrerequisiteKnowledge

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

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
Invalid 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.

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

ISyncChangeBatchWithPrerequisite Interface

ISyncKnowledge Interface

ISyncKnowledge2 Interface