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 | |
---|---|---|
ReplicaKeyMap(SerializationInfo, StreamingContext) | Initializes a new instance of the ReplicaKeyMap class by using serialized data. | |
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 | |
---|---|---|
Count | Gets the number of replica key and ID pairs that are contained in the replica key map. |
Top
Methods
Name | Description | |
---|---|---|
Deserialize | Creates a new ReplicaKeyMap object and initializes it by using serialized data. | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
FindOrAddReplicaKey | Adds entries to or finds entries in the replica key map. | |
GetHashCode | (Inherited from Object.) | |
GetObjectData | Serializes the replica key map data to a specified SerializationInfo object. | |
GetType | (Inherited from Object.) | |
LookupReplicaId | Gets the replica ID that corresponds to the specified replica key. | |
LookupReplicaKey | Gets the replica key that corresponds to the specified replica ID. | |
MemberwiseClone | (Inherited from Object.) | |
Serialize | Serializes the replica key map data to a byte array. | |
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.