语言

BusinessLogicModule.UpdateConflictsHandler 方法

定义

可选方法,实现在Publisher和Subscriber发生冲突UPDATE语句时调用的自定义业务逻辑。

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

参数

publisherDataSet
DataSet

代表Publisher数据的数据集。

subscriberDataSet
DataSet

表示订阅者数据的数据集。

customDataSet
DataSet

数据集由自定义业务逻辑实现。

conflictLogType
ConflictLogType

ConflictLogType 由自定义业务逻辑处理器请求。

customConflictMessage
String

冲突消息由自定义业务逻辑处理器返回。

historyLogLevel
Int32

自定义业务逻辑处理器返回的自定义消息的日志级别。

historyLogMessage
String

日志消息由自定义业务逻辑处理器提供。 日志消息会写入分发数据库。

返回

在 ActionOnUpdateConflict 自定义业务逻辑处理器执行后,进程将执行的操作。

适用于