MemoryConflictLog 建構 (SyncIdFormatGroup, IConflictLogWriter)
使用指定的識別碼格式結構描述和衝突記錄檔寫入器,初始化 MemoryConflictLog 類別的新執行個體。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Sub New ( _
idFormats As SyncIdFormatGroup, _
conflictLogWriter As IConflictLogWriter _
)
'用途
Dim idFormats As SyncIdFormatGroup
Dim conflictLogWriter As IConflictLogWriter
Dim instance As New MemoryConflictLog(idFormats, _
conflictLogWriter)
public MemoryConflictLog(
SyncIdFormatGroup idFormats,
IConflictLogWriter conflictLogWriter
)
public:
MemoryConflictLog(
SyncIdFormatGroup^ idFormats,
IConflictLogWriter^ conflictLogWriter
)
new :
idFormats:SyncIdFormatGroup *
conflictLogWriter:IConflictLogWriter -> MemoryConflictLog
public function MemoryConflictLog(
idFormats : SyncIdFormatGroup,
conflictLogWriter : IConflictLogWriter
)
參數
- idFormats
型別:Microsoft.Synchronization. . :: . .SyncIdFormatGroup
提供者的識別碼格式結構描述。
- conflictLogWriter
型別:Microsoft.Synchronization. . :: . .IConflictLogWriter
代表提供者之衝突記錄檔的衝突記錄檔寫入器。
例外
例外狀況 | 條件 |
---|---|
ArgumentNullException | idFormats 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |
備註
使用這個建構函式時,可能會在同步處理完成之後呼叫 Persist 方法,以便將任何新的衝突儲存至 conflictLogWriter 所代表的衝突記錄檔。