ReplicaKeyMap Class

Represents a mapping between replica keys and replica IDs.

System.Object
  Microsoft.Synchronization.ReplicaKeyMap

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

[SerializableAttribute]
public class ReplicaKeyMap : ISerializable

The ReplicaKeyMap type exposes the following members.

  NameDescription
Protected methodReplicaKeyMap(SerializationInfo, StreamingContext)Initializes a new instance of the ReplicaKeyMap class by using serialized data.
Public methodReplicaKeyMap(SyncIdFormatGroup, SyncId)Initializes a new instance of the ReplicaKeyMap class by using the specified ID format schema and associated replica ID.
Top

  NameDescription
Public propertyCountGets the number of replica key and ID pairs that are contained in the replica key map.
Top

  NameDescription
Public methodStatic memberDeserializeCreates a new ReplicaKeyMap object and initializes it by using serialized data.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFindOrAddReplicaKeyAdds entries to or finds entries in the replica key map.
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSerializes the replica key map data to a specified SerializationInfo object.
Public methodGetType (Inherited from Object.)
Public methodLookupReplicaIdGets the replica ID that corresponds to the specified replica key.
Public methodLookupReplicaKeyGets the replica key that corresponds to the specified replica ID.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodSerializeSerializes the replica key map data to a byte array.
Public methodToString (Inherited from Object.)
Top

Replica IDs repeatedly occur in the metadata for a replica and are suggested to be 16-byte GUIDs. Because of this, it is more efficient to represent replica IDs by using a map between replica IDs to 4-byte replica keys. Replica keys are then used where references to particular replicas are required.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: