ISimpleSyncProviderConcurrencyConflictResolver.ResolveUpdateUpdateConflict 方法
命名空間: Microsoft.Synchronization.SimpleProviders
組件: Microsoft.Synchronization.SimpleProviders (在 microsoft.synchronization.simpleproviders.dll)
語法
'宣告
Sub ResolveUpdateUpdateConflict ( _
itemData As Object, _
changeUnitsToMerge As IEnumerable(Of SyncId), _
changeUnitsToUpdate As IEnumerable(Of SyncId), _
keyAndExpectedVersion As ItemFieldDictionary, _
recoverableErrorReportingContext As RecoverableErrorReportingContext, _
<OutAttribute> ByRef updatedVersion As ItemFieldDictionary _
)
'用途
Dim instance As ISimpleSyncProviderConcurrencyConflictResolver
Dim itemData As Object
Dim changeUnitsToMerge As IEnumerable(Of SyncId)
Dim changeUnitsToUpdate As IEnumerable(Of SyncId)
Dim keyAndExpectedVersion As ItemFieldDictionary
Dim recoverableErrorReportingContext As RecoverableErrorReportingContext
Dim updatedVersion As ItemFieldDictionary
instance.ResolveUpdateUpdateConflict(itemData, changeUnitsToMerge, changeUnitsToUpdate, keyAndExpectedVersion, recoverableErrorReportingContext, updatedVersion)
void ResolveUpdateUpdateConflict (
Object itemData,
IEnumerable<SyncId> changeUnitsToMerge,
IEnumerable<SyncId> changeUnitsToUpdate,
ItemFieldDictionary keyAndExpectedVersion,
RecoverableErrorReportingContext recoverableErrorReportingContext,
out ItemFieldDictionary updatedVersion
)
void ResolveUpdateUpdateConflict (
Object^ itemData,
IEnumerable<SyncId^>^ changeUnitsToMerge,
IEnumerable<SyncId^>^ changeUnitsToUpdate,
ItemFieldDictionary^ keyAndExpectedVersion,
RecoverableErrorReportingContext^ recoverableErrorReportingContext,
[OutAttribute] ItemFieldDictionary^% updatedVersion
)
void ResolveUpdateUpdateConflict (
Object itemData,
IEnumerable<SyncId> changeUnitsToMerge,
IEnumerable<SyncId> changeUnitsToUpdate,
ItemFieldDictionary keyAndExpectedVersion,
RecoverableErrorReportingContext recoverableErrorReportingContext,
/** @attribute OutAttribute() */ /** @ref */ ItemFieldDictionary updatedVersion
)
JScript does not support passing value-type arguments by reference.
參數
- itemData
採用提供者特有之格式的項目資料。
- changeUnitsToMerge
SyncId 物件的集合,這些物件代表應該在衝突解決期間合併的變更單位集合。
- changeUnitsToUpdate
SyncId 物件的集合,這些物件代表應該在衝突解決期間更新的變更單位集合。
- keyAndExpectedVersion
發生衝突之項目的索引鍵和版本屬性。
- recoverableErrorReportingContext
用來報告嘗試解決衝突期間所發生之可復原錯誤的 RecoverableErrorReportingContext 物件。
- updatedVersion
傳回更新之項目的更新版本屬性。如果傳回值無效,Sync Framework 執行階段就會擲回 ArgumentOutOfRangeException,以便結束工作階段。
例外
例外狀況型別 | 條件 |
---|---|
changeUnitsToMerge 或 changeUnitsToUpdate 包含非預期大小的變更單位。 |
請參閱
參考
ISimpleSyncProviderConcurrencyConflictResolver 介面
ISimpleSyncProviderConcurrencyConflictResolver 成員
Microsoft.Synchronization.SimpleProviders 命名空間