Share via


IReplicaMetadata::SetKnowledge

Sets the current knowledge for this replica.

HRESULT SetKnowledge(
  ISyncKnowledge * pKnowledge);

Parameters

  • pKnowledge
    [in] The knowledge to set as the current knowledge for this replica.

Return Value

  • S_OK

  • E_POINTER

Remarks

This knowledge object represents changes that have been made to the items in this replica. To other providers, this knowledge object represents the current versions of the items in this replica.

A provider can use this method to save its knowledge when its ISynchronousNotifyingChangeApplierTarget::SaveKnowledge method is called by Sync Framework.

Note

This method does not save the change to the store. The provider must call IReplicaMetadata::SaveReplicaMetadata to save all changes that have been made to the IReplicaMetadata properties.

See Also

Reference

IReplicaMetadata Interface