ISyncKnowledge Interface
Represents knowledge that a replica has about its item store.
interface ISyncKnowledge : IUnknown
Members
ISyncKnowledge methods | Description |
---|---|
Gets the ID of the replica that owns this knowledge. |
|
Serializes the knowledge object data to a byte array. |
|
Sets the tick count for the replica that owns this knowledge. |
|
Indicates whether the specified item change is known by this knowledge. |
|
Indicates whether the specified change unit change is known by this knowledge. |
|
Gets the clock vector that defines the changes that are contained in the knowledge. |
|
Gets the IReplicaKeyMap object that is associated with this knowledge. |
|
Creates a new instance of this object, and copies the data from this object to the new object. |
|
Converts a version from another replica into one that is compatible with the replica that owns this knowledge. |
|
Converts a knowledge object from another replica into one that is compatible with the replica that owns this knowledge. |
|
Combines the specified knowledge with the current knowledge. |
|
Gets the knowledge for the specified item. |
|
Gets the knowledge for the specified change unit. |
|
Gets the knowledge for the specified range of item IDs. |
|
Removes knowledge about the specified item from the knowledge. |
|
Removes knowledge about the specified change unit from the knowledge. |
|
Indicates whether the specified knowledge is known by this knowledge. |
|
Finds the minimum tick count in the knowledge for the specified replica. |
|
Gets an object that can enumerate the IRangeException objects that are stored in the knowledge. |
|
Gets an object that can enumerate the ISingleItemException objects that are stored in the knowledge. |
|
Gets an object that can enumerate the IChangeUnitException objects that are stored in the knowledge. |
|
Gets the clock vector that is associated with the specified item ID. |
|
Gets the clock vector that is associated with the specified change unit ID. |
|
Gets the version of this knowledge structure. |
Remarks
To obtain a new ISyncKnowledge object, first create an IProviderSyncServices object by passing CLSID_SyncServices and IID_IProviderSyncServices to the CoCreateInstance function. Then, create the knowledge object by using IProviderSyncServices::CreateSyncKnowledge.
Be aware that there is no single representation of knowledge. Equivalent knowledge might be represented in different forms and return different values from knowledge inspection methods, such as GetScopeVector, GetRangeExceptions, GetSingleItemExceptions, GetChangeUnitExceptions.
Requirements
Header: Synchronization.h