Share via


ReplicaKeyMap.FindOrAddReplicaKey Method

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

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

Syntax

'Declaration
Public Function FindOrAddReplicaKey ( _
    replicaId As SyncId _
) As UInteger
'Usage
Dim instance As ReplicaKeyMap
Dim replicaId As SyncId
Dim returnValue As UInteger

returnValue = instance.FindOrAddReplicaKey(replicaId)
public uint FindOrAddReplicaKey(
    SyncId replicaId
)
public:
unsigned int FindOrAddReplicaKey(
    SyncId^ replicaId
)
member FindOrAddReplicaKey : 
        replicaId:SyncId -> uint32 
public function FindOrAddReplicaKey(
    replicaId : SyncId
) : uint

Parameters

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.

Exceptions

Exception Condition
SyncIdFormatMismatchException

replicaId is not of the format that the provider specified.

See Also

Reference

ReplicaKeyMap Class

Microsoft.Synchronization Namespace