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