共用方式為


SyncKnowledge 建構 (SyncIdFormatGroup, ReplicaKeyMap, UInt64)

初始化 SyncKnowledge 類別的新執行個體,這個執行個體包含指定的識別碼格式結構描述、複寫機碼對應和滴答計數。

命名空間:  Microsoft.Synchronization
組件:  Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)

語法

'宣告
Public Sub New ( _
    idFormats As SyncIdFormatGroup, _
    replicaKeyMap As ReplicaKeyMap, _
    tickCount As ULong _
)
'用途
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
)

參數

例外

例外狀況 條件
ArgumentNullException

idFormats 或 replicaKeyMap 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。

備註

這個形式的建構函式會將 ReplicaId 設定為在複寫機碼對應中以複寫機碼 0 表示的複寫識別碼。

請參閱

參考

SyncKnowledge類別

SyncKnowledge 成員

SyncKnowledge 多載

Microsoft.Synchronization 命名空間