Click to Rate and Give Feedback

  Switch on low bandwidth view
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

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker