Share via


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)

Syntax

'Declaration
Public MustOverride Sub SetKnowledge ( _
    knowledge As SyncKnowledge _
)
'Usage
Dim instance As ReplicaMetadata
Dim knowledge As SyncKnowledge

instance.SetKnowledge(knowledge)
public abstract void SetKnowledge(
    SyncKnowledge knowledge
)
public:
virtual void SetKnowledge(
    SyncKnowledge^ knowledge
) abstract
abstract SetKnowledge : 
        knowledge:SyncKnowledge -> unit 
public abstract function SetKnowledge(
    knowledge : SyncKnowledge
)

Parameters

Exceptions

Exception Condition
ObjectDisposedException

The object has been disposed or was not initialized correctly.

ArgumentNullException

knowledge is a null reference (Nothing in Visual Basic).

ArgumentException

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

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.

See Also

Reference

ReplicaMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace