Export (0) Print
Expand All

IReplicaKeyMap Interface

Represents a mapping between replica keys and replica IDs.


interface IReplicaKeyMap : IUnknown

IReplicaKeyMap methods Description

IReplicaKeyMap::LookupReplicaKey

Gets the replica key that corresponds to the specified replica ID.

IReplicaKeyMap::LookupReplicaId

Gets the replica ID that corresponds to the specified replica key.

IReplicaKeyMap::Serialize

Serializes the replica key map data to a byte array.

Because replica IDs repeatedly occur in the metadata for a replica and are suggested to be 16-byte GUIDs, Sync Framework represents replica IDs by using a map between replica IDs to 4-byte replica keys. Sync Framework then uses replica keys where references to particular replicas are required.

To obtain a new IReplicaKeyMap object, first create an IProviderSyncServices object by passing CLSID_SyncServices and IID_IProviderSyncServices to the CoCreateInstance function. Then, create an IReplicaKeyMap object by calling IProviderSyncServices::CreateReplicaKeyMap.

Header: Synchronization.h

Show:
© 2014 Microsoft