Share via


ISaveChangeContext::GetKnowledgeForScope

Gets objects that represent the knowledge and forgotten knowledge that is learned by the replica when this change is applied.

Syntax

HRESULT GetKnowledgeForScope(
  ISyncKnowledge ** ppUpdatedDestinationKnowledge,
  IForgottenKnowledge ** ppForgottenKnowledge);

Parameters

  • ppUpdatedDestinationKnowledge
    [out] Returns the updated knowledge for the destination.

  • ppForgottenKnowledge
    [out] Returns the updated forgotten knowledge for the destination.

Return Value

  • S_OK

  • E_POINTER

  • SYNC_E_INTERNAL_ERROR

Remarks

The knowledge objects that this method returns must directly replace the existing scope knowledge.

Note

The updated destination knowledge can change even when no changes are applied, for example, when every change causes a recoverable error to be recorded in the knowledge.

See Also

Reference

ISaveChangeContext Interface