Udostępnij przez


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

'Deklaracja
Public Sub SetPeerConflictDetection ( _
    enablePeerConflictDetection As Boolean, _
    peerOriginatorID As Integer _
)
public void SetPeerConflictDetection (
    bool enablePeerConflictDetection,
    int peerOriginatorID
)
public:
void SetPeerConflictDetection (
    bool enablePeerConflictDetection, 
    int peerOriginatorID
)
public void SetPeerConflictDetection (
    boolean enablePeerConflictDetection, 
    int peerOriginatorID
)
public function SetPeerConflictDetection (
    enablePeerConflictDetection : boolean, 
    peerOriginatorID : int
)

Parameters

  • enablePeerConflictDetection
    A Boolean value. If true, the Distribution Agent detects any conflicts during synchronization. If false, the Distribution Agent does not detect conflicts.
  • peerOriginatorID
    An ID that matches the integer specified for PeerOriginatorID.

Remarks

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.