ReplicaMetadata::SetKnowledge Method

When overridden in a derived class, sets the current knowledge for this replica.

Namespace:  Microsoft.Synchronization.MetadataStorage
Assembly:  Microsoft.Synchronization.MetadataStorage (in Microsoft.Synchronization.MetadataStorage.dll)

public:
virtual void SetKnowledge(
	SyncKnowledge^ knowledge
) abstract

Parameters

knowledge
Type: Microsoft.Synchronization::SyncKnowledge
The knowledge to set as the current knowledge for this replica.

ExceptionCondition
ObjectDisposedException

The object has been disposed or was not initialized correctly.

ArgumentNullException

knowledge is a nullptr.

ArgumentException

knowledge contains a replica ID that is different from the replica ID for this metadata.

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.

Show: