Dela via


ReplicaMetadata.GetKnowledge Method

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

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

Syntax

'Declaration
Public MustOverride Function GetKnowledge As SyncKnowledge
'Usage
Dim instance As ReplicaMetadata
Dim returnValue As SyncKnowledge

returnValue = instance.GetKnowledge()
public abstract SyncKnowledge GetKnowledge()
public:
virtual SyncKnowledge^ GetKnowledge() abstract
abstract GetKnowledge : unit -> SyncKnowledge 
public abstract function GetKnowledge() : SyncKnowledge

Return Value

Type: Microsoft.Synchronization.SyncKnowledge
The current knowledge for this replica. If no knowledge exists, a new knowledge object is created.

Exceptions

Exception Condition
ObjectDisposedException

The object has been disposed or was not initialized correctly.

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.

The knowledge that is returned must always have its tick count set to the tick count that is saved in the metadata store.

See Also

Reference

ReplicaMetadata Class

Microsoft.Synchronization.MetadataStorage Namespace