ReplicaKeyMap Class

Represents a mapping between replica keys and replica IDs.

Inheritance Hierarchy

System.Object
  Microsoft.Synchronization.ReplicaKeyMap

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class ReplicaKeyMap _
    Implements ISerializable
'Usage
Dim instance As ReplicaKeyMap
[SerializableAttribute]
public class ReplicaKeyMap : ISerializable
[SerializableAttribute]
public ref class ReplicaKeyMap : ISerializable
[<SerializableAttribute>]
type ReplicaKeyMap =  
    class
        interface ISerializable
    end
public class ReplicaKeyMap implements ISerializable

The ReplicaKeyMap type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property Count Gets the number of replica key and ID pairs that are contained in the replica key map.

Top

Methods

  Name Description
Public methodStatic member Deserialize Creates a new ReplicaKeyMap object and initializes it by using serialized data.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method FindOrAddReplicaKey Adds entries to or finds entries in the replica key map.
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData Serializes the replica key map data to a specified SerializationInfo object.
Public method GetType (Inherited from Object.)
Public method LookupReplicaId Gets the replica ID that corresponds to the specified replica key.
Public method LookupReplicaKey Gets the replica key that corresponds to the specified replica ID.
Protected method MemberwiseClone (Inherited from Object.)
Public method Serialize Serializes the replica key map data to a byte array.
Public method ToString (Inherited from Object.)

Top

Remarks

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.

Thread Safety

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

See Also

Reference

Microsoft.Synchronization Namespace