BusinessLogicModule.UpdateDeleteConflictHandler 方法

定义

可选方法,实现当在发布服务器和订阅服务器上发生 UPDATE 语句与 DELETE 语句的冲突时调用的自定义业务逻辑。

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

参数

updateSource
SourceIdentifier

SourceIdentifier,它指示更新操作源自发布服务器还是订阅服务器。

sourceDataSet
DataSet

包含表示冲突行的 GUID 的数据集。

customDataSet
DataSet

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

conflictLogType
ConflictLogType

自定义业务逻辑处理程序请求的 ConflictLogType

customConflictMessage
String

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

historyLogLevel
Int32

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

historyLogMessage
String

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

返回

在执行了自定义业务逻辑处理程序后将由进程采取的 ActionOnUpdateDeleteConflict 操作。

适用于