Sdílet prostřednictvím


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
)
public UInt32 FindOrAddReplicaKey (
    SyncId replicaId
)
public function FindOrAddReplicaKey (
    replicaId : SyncId
) : uint

Parameters

  • replicaId
    The ID of the replica to add or find.

Return Value

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 type Condition

SyncIdFormatMismatchException

replicaId is not of the format that the provider specified.

See Also

Reference

ReplicaKeyMap Class
ReplicaKeyMap Members
Microsoft.Synchronization Namespace