語言

BusinessLogicModule.UpdateDeleteConflictHandler 方法

定義

一種可選方法,當 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 還是訂閱者?

sourceDataSet
DataSet

包含代表衝突列的 GUID 的資料集。

customDataSet
DataSet

資料集由自訂商業邏輯實作。

conflictLogType
ConflictLogType

ConflictLogType 由自訂商業邏輯處理器請求。

customConflictMessage
String

衝突訊息由自訂商業邏輯處理器回傳。

historyLogLevel
Int32

自訂商業邏輯處理器回傳的自訂訊息的日誌層級。

historyLogMessage
String

日誌訊息由自訂商業邏輯處理器提供。 日誌訊息會寫入分發資料庫。

傳回

ActionOnUpdateDeleteConflict在自訂商業邏輯處理器執行後,程序將執行的動作。

適用於