BusinessLogicModule.UpdateErrorHandler 메서드

정의

UPDATE 문이 업로드되거나 다운로드되는 동안 오류가 발생할 때 호출되는 사용자 지정 비즈니스 논리를 구현하는 선택적 메서드입니다.

public:
 virtual Microsoft::SqlServer::Replication::BusinessLogicSupport::ActionOnDataError UpdateErrorHandler(Microsoft::SqlServer::Replication::BusinessLogicSupport::SourceIdentifier updateSource, System::Data::DataSet ^ updatedDataSet, 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 UpdateErrorHandler (Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier updateSource, System.Data.DataSet updatedDataSet, ref Microsoft.SqlServer.Replication.BusinessLogicSupport.ErrorLogType errorLogType, ref string customErrorMessage, int errorCode, string errorMessage, ref int historyLogLevel, ref string historyLogMessage);
abstract member UpdateErrorHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * ErrorLogType * string * int * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataError
override this.UpdateErrorHandler : Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier * System.Data.DataSet * ErrorLogType * string * int * string * int * string -> Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataError
Public Overridable Function UpdateErrorHandler (updateSource As SourceIdentifier, updatedDataSet 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

매개 변수

updateSource
SourceIdentifier

오류가 발생한 업데이트의 출처가 게시자인지 구독자인지를 나타내는 SourceIdentifier입니다.

updatedDataSet
DataSet

오류를 일으킨 UPDATE 문을 나타내는 데이터 집합입니다.

errorLogType
ErrorLogType

복제에서 오류를 기록하는 방법을 제어하는 ErrorLogType 출력 매개 변수입니다. 이 매개 변수는 반환 값이 AcceptCustomErrorBehavior인 경우에만 사용됩니다.

customErrorMessage
String

사용자 지정 오류 메시지를 반환하는 데 사용되는 출력 매개 변수입니다. 이 매개 변수는 반환 값이 AcceptCustomErrorBehavior인 경우에만 사용됩니다.

errorCode
Int32

발생한 기본 복제 오류에 해당하는 오류 코드입니다.

errorMessage
String

발생한 기본 복제 오류에 해당하는 오류 메시지 텍스트입니다.

historyLogLevel
Int32

사용자 지정 비즈니스 논리 처리기가 반환하는 사용자 지정 메시지의 로그 수준입니다.

historyLogMessage
String

사용자 지정 비즈니스 논리 처리기가 제공하는 로그 메시지입니다. 이 로그 메시지는 배포 데이터베이스에 기록됩니다.

반환

사용자 지정 비즈니스 논리 처리기가 실행된 후 프로세스에서 수행할 ActionOnDataError 동작입니다.

적용 대상