LoggedConflict 建構 (SyncIdFormatGroup, ItemChange, SyncId, ConstraintConflictReason, Object, SyncKnowledge, SyncKnowledge, Boolean)
使用指定的識別碼格式結構描述、項目變更中繼資料、衝突項目識別碼、條件約束衝突原因、項目資料、衝突知識、建立方式知識和表示此衝突是否為暫時的值,初始化代表條件約束衝突之 LoggedConflict 類別的新執行個體。
命名空間: Microsoft.Synchronization
組件: Microsoft.Synchronization (在 Microsoft.Synchronization.dll 中)
語法
'宣告
Public Sub New ( _
idFormats As SyncIdFormatGroup, _
itemChange As ItemChange, _
conflictingItemId As SyncId, _
conflictReason As ConstraintConflictReason, _
data As Object, _
conflictKnowledge As SyncKnowledge, _
madeWithKnowledge As SyncKnowledge, _
temporary As Boolean _
)
'用途
Dim idFormats As SyncIdFormatGroup
Dim itemChange As ItemChange
Dim conflictingItemId As SyncId
Dim conflictReason As ConstraintConflictReason
Dim data As Object
Dim conflictKnowledge As SyncKnowledge
Dim madeWithKnowledge As SyncKnowledge
Dim temporary As Boolean
Dim instance As New LoggedConflict(idFormats, _
itemChange, conflictingItemId, conflictReason, _
data, conflictKnowledge, madeWithKnowledge, _
temporary)
public LoggedConflict(
SyncIdFormatGroup idFormats,
ItemChange itemChange,
SyncId conflictingItemId,
ConstraintConflictReason conflictReason,
Object data,
SyncKnowledge conflictKnowledge,
SyncKnowledge madeWithKnowledge,
bool temporary
)
public:
LoggedConflict(
SyncIdFormatGroup^ idFormats,
ItemChange^ itemChange,
SyncId^ conflictingItemId,
ConstraintConflictReason conflictReason,
Object^ data,
SyncKnowledge^ conflictKnowledge,
SyncKnowledge^ madeWithKnowledge,
bool temporary
)
new :
idFormats:SyncIdFormatGroup *
itemChange:ItemChange *
conflictingItemId:SyncId *
conflictReason:ConstraintConflictReason *
data:Object *
conflictKnowledge:SyncKnowledge *
madeWithKnowledge:SyncKnowledge *
temporary:bool -> LoggedConflict
public function LoggedConflict(
idFormats : SyncIdFormatGroup,
itemChange : ItemChange,
conflictingItemId : SyncId,
conflictReason : ConstraintConflictReason,
data : Object,
conflictKnowledge : SyncKnowledge,
madeWithKnowledge : SyncKnowledge,
temporary : boolean
)
參數
- idFormats
型別:Microsoft.Synchronization. . :: . .SyncIdFormatGroup
提供者的識別碼格式結構描述。
- itemChange
型別:Microsoft.Synchronization. . :: . .ItemChange
來源提供者中衝突變更的項目中繼資料。
- conflictingItemId
型別:Microsoft.Synchronization. . :: . .SyncId
目的地複寫中與 itemChange 指定之項目發生衝突之項目的項目識別碼。可為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing)。
- conflictReason
型別:Microsoft.Synchronization. . :: . .ConstraintConflictReason
發生衝突的原因。
- data
型別:System. . :: . .Object
itemChange 的項目資料。
- conflictKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
套用這個變更時要學習的知識。
- madeWithKnowledge
型別:Microsoft.Synchronization. . :: . .SyncKnowledge
這個變更的建立方式知識。變更的建立方式知識通常是在進行這項變更時複寫所擁有的知識。
- temporary
型別:System. . :: . .Boolean
如果此衝突是暫時的,則為 true,否則為 false。
例外
例外狀況 | 條件 |
---|---|
ArgumentNullException | idFormats、itemChange、data 或 conflictKnowledge 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。 |
SyncIdFormatMismatchException | conflictingItemId 不是 idFormats 所指定的格式。 |
備註
剛建立的 LoggedConflict 物件會加入衝突知識及傳入 conflictKnowledge 和 madeWithKnowledge 之建立方式知識物件的參考,但是不會複製它們。