ReplicaKeyMap::FindOrAddReplicaKey Method

Adds entries to or finds entries in the replica key map.

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

public:
unsigned int FindOrAddReplicaKey(
	SyncId^ replicaId
)

Parameters

replicaId
Type: Microsoft.Synchronization::SyncId
The ID of the replica to add or find.

Return Value

Type: System::UInt32
The key of the replica in the map. If an entry for replicaId does not exist in the map, an entry is created and a new key is assigned to it.

ExceptionCondition
SyncIdFormatMismatchException

replicaId is not of the format that the provider specified.

Show: