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