언어

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이는 오류를 발생시킨 업데이트의 출처가 Publisher인지 구독자인지 여부를 나타냅니다.

updatedDataSet
DataSet

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

errorLogType
ErrorLogType

ErrorLogType 복제가 오류를 기록하는 방식을 제어하는 출력 매개변수입니다. 이 매개변수는 반환 값이 일 AcceptCustomErrorBehavior때만 사용됩니다.

customErrorMessage
String

출력 매개변수는 사용자 정의 오류 메시지를 반환하는 데 사용됩니다. 이 매개변수는 반환 값이 일 AcceptCustomErrorBehavior때만 사용됩니다.

errorCode
Int32

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

errorMessage
String

발생한 복제 오류에 대응하는 오류 메시지 텍스트.

historyLogLevel
Int32

사용자 정의 비즈니스 로직 핸들러가 반환하는 사용자 지정 메시지의 로그 수준입니다.

historyLogMessage
String

사용자 정의 비즈니스 로직 핸들러가 제공하는 로그 메시지. 로그 메시지는 배포 데이터베이스에 기록됩니다.

반품

ActionOnDataError 맞춤형 비즈니스 로직 핸들러가 실행된 후 프로세스가 취할 행동입니다.

적용 대상