Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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.
Exceptions
| Exception | Condition |
|---|---|
| SyncIdFormatMismatchException | replicaId is not of the format that the provider specified. |