Bagikan melalui


TransPublication.SetPeerConflictDetection Method

Enables or disables conflict detection for a node in a peer-to-peer topology.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Syntax

'Declaration
Public Sub SetPeerConflictDetection ( _
    enablePeerConflictDetection As Boolean, _
    peerOriginatorID As Integer _
)
'Usage
Dim instance As TransPublication
Dim enablePeerConflictDetection As Boolean
Dim peerOriginatorID As Integer

instance.SetPeerConflictDetection(enablePeerConflictDetection, _
    peerOriginatorID)
public void SetPeerConflictDetection(
    bool enablePeerConflictDetection,
    int peerOriginatorID
)
public:
void SetPeerConflictDetection(
    bool enablePeerConflictDetection, 
    int peerOriginatorID
)
member SetPeerConflictDetection : 
        enablePeerConflictDetection:bool * 
        peerOriginatorID:int -> unit 
public function SetPeerConflictDetection(
    enablePeerConflictDetection : boolean, 
    peerOriginatorID : int
)

Parameters

  • enablePeerConflictDetection
    Type: System.Boolean
    A Boolean value. If true, the Distribution Agent detects any conflicts during synchronization. If false, the Distribution Agent does not detect conflicts.

Remarks

For more information, see Conflict Detection in Peer-to-Peer Replication.