BusinessLogicModule.UpdateDeleteConflictHandler 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
可选方法,实现当 UPDATE 语句与 DELETE 语句在 Publisher 和 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
参数
- updateSource
- SourceIdentifier
这是否SourceIdentifier意味着更新的来源是Publisher还是Subscriber?
- sourceDataSet
- DataSet
包含代表冲突行的GUID的数据集。
- customDataSet
- DataSet
数据集由自定义业务逻辑实现。
- conflictLogType
- ConflictLogType
ConflictLogType 由自定义业务逻辑处理器请求。
- customConflictMessage
- String
冲突消息由自定义业务逻辑处理器返回。
- historyLogLevel
- Int32
自定义业务逻辑处理器返回的自定义消息的日志级别。
- historyLogMessage
- String
日志消息由自定义业务逻辑处理器提供。 日志消息会写入分发数据库。
返回
在 ActionOnUpdateDeleteConflict 自定义业务逻辑处理器执行后,进程将执行的操作。