共用方式為


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
)

參數

  • conflictingItemId
    型別:Microsoft.Synchronization. . :: . .SyncId
    目的地複寫中與 itemChange 指定之項目發生衝突之項目的項目識別碼。可為 nullNothingnullptrunitnull 參考 (在 Visual Basic 中為 Nothing)。

例外

例外狀況 條件
ArgumentNullException

idFormats、itemChange、data 或 conflictKnowledge 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。

SyncIdFormatMismatchException

conflictingItemId 不是 idFormats 所指定的格式。

備註

剛建立的 LoggedConflict 物件會加入衝突知識及傳入 conflictKnowledge 和 madeWithKnowledge 之建立方式知識物件的參考,但是不會複製它們。

請參閱

參考

LoggedConflict類別

LoggedConflict 成員

LoggedConflict 多載

Microsoft.Synchronization 命名空間