Aracılığıyla paylaş


BusinessLogicModule.UpdateConflictsHandler Method

Definition

Optional method that implements the custom business logic invoked when conflicting UPDATE statements occur at the Publisher and at the Subscriber.

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

Parameters

publisherDataSet
DataSet

Dataset representing the Publisher data.

subscriberDataSet
DataSet

Dataset representing the Subscriber data.

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 ActionOnUpdateConflict action that will be taken by the process after the custom business logic handler has executed.

Applies to