ISimpleSyncProviderConstraintConflictResolver.MergeConstraintConflict 方法
在衍生類別中覆寫時,將本機與遠端資料合併成套用至目的地的單一項目。
命名空間: Microsoft.Synchronization.SimpleProviders
組件: Microsoft.Synchronization.SimpleProviders (在 microsoft.synchronization.simpleproviders.dll)
語法
'宣告
Sub MergeConstraintConflict ( _
itemData As Object, _
conflictVersionInformation As ConflictVersionInformation, _
changeUnitsToMerge As IEnumerable(Of SyncId), _
localConflictingItem As ItemFieldDictionary, _
keyAndExpectedVersion As ItemFieldDictionary, _
recoverableErrorReportingContext As RecoverableErrorReportingContext, _
<OutAttribute> ByRef updatedKeyAndVersion As ItemFieldDictionary _
)
'用途
Dim instance As ISimpleSyncProviderConstraintConflictResolver
Dim itemData As Object
Dim conflictVersionInformation As ConflictVersionInformation
Dim changeUnitsToMerge As IEnumerable(Of SyncId)
Dim localConflictingItem As ItemFieldDictionary
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedKeyAndVersion As ItemFieldDictionary
instance.MergeConstraintConflict(itemData, conflictVersionInformation, changeUnitsToMerge, localConflictingItem, keyAndExpectedVersion, recoverableErrorReportingContext, updatedKeyAndVersion)
void MergeConstraintConflict (
Object itemData,
ConflictVersionInformation conflictVersionInformation,
IEnumerable<SyncId> changeUnitsToMerge,
ItemFieldDictionary localConflictingItem,
ItemFieldDictionary keyAndExpectedVersion,
RecoverableErrorReportingContext recoverableErrorReportingContext,
out ItemFieldDictionary updatedKeyAndVersion
)
void MergeConstraintConflict (
Object^ itemData,
ConflictVersionInformation^ conflictVersionInformation,
IEnumerable<SyncId^>^ changeUnitsToMerge,
ItemFieldDictionary^ localConflictingItem,
ItemFieldDictionary^ keyAndExpectedVersion,
RecoverableErrorReportingContext^ recoverableErrorReportingContext,
[OutAttribute] ItemFieldDictionary^% updatedKeyAndVersion
)
void MergeConstraintConflict (
Object itemData,
ConflictVersionInformation conflictVersionInformation,
IEnumerable<SyncId> changeUnitsToMerge,
ItemFieldDictionary localConflictingItem,
ItemFieldDictionary keyAndExpectedVersion,
RecoverableErrorReportingContext recoverableErrorReportingContext,
/** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedKeyAndVersion
)
JScript does not support passing value-type arguments by reference.
參數
- itemData
採用提供者特有之格式的項目資料。
- conflictVersionInformation
ConflictVersionInformation 物件,這個物件包含發生衝突之項目的遠端提供者已知項目版本 (如果有的話) 的相關資訊。
- changeUnitsToMerge
SyncId 物件的集合,這些物件代表要在衝突解決期間合併的變更單位集合。
- localConflictingItem
與發生衝突之本機項目相關聯的欄位。
- keyAndExpectedVersion
發生衝突之項目的索引鍵和版本屬性。
- recoverableErrorReportingContext
用來報告嘗試解決衝突期間所發生之可復原錯誤的 RecoverableErrorReportingContext 物件。
- updatedKeyAndVersion
傳回由於衝突解決所修改的索引鍵和版本屬性。
例外
例外狀況型別 | 條件 |
---|---|
changeUnitsToMerge 包含非預期大小的變更單位。 |
請參閱
參考
ISimpleSyncProviderConstraintConflictResolver 介面
ISimpleSyncProviderConstraintConflictResolver 成員
Microsoft.Synchronization.SimpleProviders 命名空間