SyncKnowledge Constructor (SyncIdFormatGroup, ReplicaKeyMap, UInt64)

Initializes a new instance of the SyncKnowledge class that contains the specified ID format schema, replica key map, and tick count.

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

Syntax

'Declaration
Public Sub New ( _
    idFormats As SyncIdFormatGroup, _
    replicaKeyMap As ReplicaKeyMap, _
    tickCount As ULong _
)
'Usage
Dim idFormats As SyncIdFormatGroup
Dim replicaKeyMap As ReplicaKeyMap
Dim tickCount As ULong

Dim instance As New SyncKnowledge(idFormats, _
    replicaKeyMap, tickCount)
public SyncKnowledge(
    SyncIdFormatGroup idFormats,
    ReplicaKeyMap replicaKeyMap,
    ulong tickCount
)
public:
SyncKnowledge(
    SyncIdFormatGroup^ idFormats, 
    ReplicaKeyMap^ replicaKeyMap, 
    unsigned long long tickCount
)
new : 
        idFormats:SyncIdFormatGroup * 
        replicaKeyMap:ReplicaKeyMap * 
        tickCount:uint64 -> SyncKnowledge
public function SyncKnowledge(
    idFormats : SyncIdFormatGroup, 
    replicaKeyMap : ReplicaKeyMap, 
    tickCount : ulong
)

Parameters

  • tickCount
    Type: System.UInt64
    The current tick count of the replica that owns this knowledge.

Exceptions

Exception Condition
ArgumentNullException

idFormats or replicaKeyMap is a null reference (Nothing in Visual Basic).

Remarks

This form of the constructor sets ReplicaId to the ID of the replica that is represented by replica key 0 in the replica key map.

See Also

Reference

SyncKnowledge Class

SyncKnowledge Overload

Microsoft.Synchronization Namespace