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 命名空间