Share via


BusinessLogicModule.UpdateConflictsHandler メソッド

定義

パブリッシャーとサブスクライバーで 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

パブリッシャーのデータを表すデータセットです。

subscriberDataSet
DataSet

サブスクライバーのデータを表すデータセットです。

customDataSet
DataSet

カスタム ビジネス ロジックによって実装されるデータセットです。

conflictLogType
ConflictLogType

カスタム ビジネス ロジック ハンドラーによって要求される ConflictLogType です。

customConflictMessage
String

カスタム ビジネス ロジック ハンドラーによって返される競合メッセージです。

historyLogLevel
Int32

カスタム ビジネス ロジック ハンドラーによって返されるカスタム メッセージのログ レベルです。

historyLogMessage
String

カスタム ビジネス ロジック ハンドラーによって提供されるログ メッセージです。 ログ メッセージはディストリビューション データベースに書き込まれます。

戻り値

カスタム ビジネス ロジック ハンドラーが実行された後にプロセスで実行される ActionOnUpdateConflict アクションです。

適用対象