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