SaveConstraintConflict 方法
在派生类中重写时,保存有关导致约束冲突的变更的信息。
命名空间: Microsoft.Synchronization
程序集: Microsoft.Synchronization(在 Microsoft.Synchronization.dll 中)
语法
声明
Sub SaveConstraintConflict ( _
conflictingChange As ItemChange, _
conflictingItemId As SyncId, _
reason As ConstraintConflictReason, _
conflictingChangeData As Object, _
conflictingChangeKnowledge As SyncKnowledge, _
temporary As Boolean _
)
用法
Dim instance As IConflictLogWriter
Dim conflictingChange As ItemChange
Dim conflictingItemId As SyncId
Dim reason As ConstraintConflictReason
Dim conflictingChangeData As Object
Dim conflictingChangeKnowledge As SyncKnowledge
Dim temporary As Boolean
instance.SaveConstraintConflict(conflictingChange, _
conflictingItemId, reason, conflictingChangeData, _
conflictingChangeKnowledge, temporary)
void SaveConstraintConflict(
ItemChange conflictingChange,
SyncId conflictingItemId,
ConstraintConflictReason reason,
Object conflictingChangeData,
SyncKnowledge conflictingChangeKnowledge,
bool temporary
)
void SaveConstraintConflict(
ItemChange^ conflictingChange,
SyncId^ conflictingItemId,
ConstraintConflictReason reason,
Object^ conflictingChangeData,
SyncKnowledge^ conflictingChangeKnowledge,
bool temporary
)
abstract SaveConstraintConflict :
conflictingChange:ItemChange *
conflictingItemId:SyncId *
reason:ConstraintConflictReason *
conflictingChangeData:Object *
conflictingChangeKnowledge:SyncKnowledge *
temporary:bool -> unit
function SaveConstraintConflict(
conflictingChange : ItemChange,
conflictingItemId : SyncId,
reason : ConstraintConflictReason,
conflictingChangeData : Object,
conflictingChangeKnowledge : SyncKnowledge,
temporary : boolean
)
参数
- conflictingChange
类型:Microsoft.Synchronization. . :: . .ItemChange
源提供程序中的冲突变更的项元数据。
- conflictingItemId
类型:Microsoft.Synchronization. . :: . .SyncId
目标副本中与 conflictingChange 指定的项发生冲突的项的项 ID。
- reason
类型:Microsoft.Synchronization. . :: . .ConstraintConflictReason
发生冲突的原因。
- conflictingChangeData
类型:System. . :: . .Object
冲突变更的项数据。
- conflictingChangeKnowledge
类型:Microsoft.Synchronization. . :: . .SyncKnowledge
应用此变更时要了解的知识。它必须和变更一起保存。
- temporary
类型:System. . :: . .Boolean
如果这是临时冲突,则为 true。否则为 false。
注释
如果此冲突表示的变更应用于副本,则 conflictingChangeKnowledge 必须与该副本的知识组合在一起。