BusinessLogicModule.UpdateDeleteConflictHandler Method

Definition

Optional method that implements the custom business logic invoked when UPDATE statements conflict with DELETE statements at the Publisher and at the Subscriber.

public:
 virtual Microsoft::SqlServer::Replication::BusinessLogicSupport::ActionOnUpdateDeleteConflict UpdateDeleteConflictHandler(Microsoft::SqlServer::Replication::BusinessLogicSupport::SourceIdentifier updateSource, System::Data::DataSet ^ sourceDataSet, System::Data::DataSet ^ % customDataSet, Microsoft::SqlServer::Replication::BusinessLogicSupport::ConflictLogType % conflictLogType, System::String ^ % customConflictMessage, int % historyLogLevel, System::String ^ % historyLogMessage);
public virtual Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict UpdateDeleteConflictHandler (Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier updateSource, System.Data.DataSet sourceDataSet, ref System.Data.DataSet customDataSet, ref Microsoft.SqlServer.Replication.BusinessLogicSupport.ConflictLogType conflictLogType, ref string customConflictMessage, ref int historyLogLevel, ref string historyLogMessage);
abstract member UpdateDeleteConflictHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * DataSet * ConflictLogType * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict
override this.UpdateDeleteConflictHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * DataSet * ConflictLogType * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnUpdateDeleteConflict
Public Overridable Function UpdateDeleteConflictHandler (updateSource As SourceIdentifier, sourceDataSet As DataSet, ByRef customDataSet As DataSet, ByRef conflictLogType As ConflictLogType, ByRef customConflictMessage As String, ByRef historyLogLevel As Integer, ByRef historyLogMessage As String) As ActionOnUpdateDeleteConflict

Parameters

updateSource
SourceIdentifier

Is the SourceIdentifier that indicates whether the source of the update is the Publisher or the Subscriber.

sourceDataSet
DataSet

Dataset that contains the GUID representing the row in conflict.

customDataSet
DataSet

Dataset implemented by the custom business logic.

conflictLogType
ConflictLogType

ConflictLogType requested by the custom business logic handler.

customConflictMessage
String

Conflict message returned by the custom business logic handler.

historyLogLevel
Int32

Log level of the custom message returned by the custom business logic handler.

historyLogMessage
String

Log message provided by custom business logic handler. The log message gets written to the distribution database.

Returns

The ActionOnUpdateDeleteConflict action that will be taken by the process after the custom business logic handler has executed.

Applies to