BusinessLogicModule.InsertErrorHandler メソッド

定義

INSERT ステートメントのアップロードまたはダウンロードでエラーが発生した場合に呼び出されるカスタム ビジネス ロジックを実装するオプションのメソッドです。

public:
 virtual Microsoft::SqlServer::Replication::BusinessLogicSupport::ActionOnDataError InsertErrorHandler(Microsoft::SqlServer::Replication::BusinessLogicSupport::SourceIdentifier insertSource, System::Data::DataSet ^ insertedDataSet, Microsoft::SqlServer::Replication::BusinessLogicSupport::ErrorLogType % errorLogType, System::String ^ % customErrorMessage, int errorCode, System::String ^ errorMessage, int % historyLogLevel, System::String ^ % historyLogMessage);
public virtual Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataError InsertErrorHandler (Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier insertSource, System.Data.DataSet insertedDataSet, ref Microsoft.SqlServer.Replication.BusinessLogicSupport.ErrorLogType errorLogType, ref string customErrorMessage, int errorCode, string errorMessage, ref int historyLogLevel, ref string historyLogMessage);
abstract member InsertErrorHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * ErrorLogType * string * int * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataError
override this.InsertErrorHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * ErrorLogType * string * int * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataError
Public Overridable Function InsertErrorHandler (insertSource As SourceIdentifier, insertedDataSet As DataSet, ByRef errorLogType As ErrorLogType, ByRef customErrorMessage As String, errorCode As Integer, errorMessage As String, ByRef historyLogLevel As Integer, ByRef historyLogMessage As String) As ActionOnDataError

パラメーター

insertSource
SourceIdentifier

エラーが発生した挿入元がパブリッシャーかサブスクライバーかを示す SourceIdentifier です。

insertedDataSet
DataSet

挿入された行の GUID を含むデータセットです。

errorLogType
ErrorLogType

レプリケーションでエラーをどのようにログに記録するかを制御する ErrorLogType 出力パラメーターです。 このパラメーターが使用されるのは、戻り値が AcceptCustomErrorBehavior の場合だけです。

customErrorMessage
String

カスタム エラー メッセージを返すために使用する出力パラメーターです。 このパラメーターは、戻り値が AcceptCustomErrorBehavior.

errorCode
Int32

発生した基のレプリケーション エラーに対応するエラー コードです。

errorMessage
String

発生した基のレプリケーション エラーに対応するエラー メッセージ テキストです。

historyLogLevel
Int32

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

historyLogMessage
String

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

戻り値

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

適用対象