IBusinessLogicResolver.InvokeErrorHandler 메서드
이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.
Invokes a handler when error occurs during execution.
네임스페이스: Microsoft.SqlServer.Replication.BusinessLogicSupport
어셈블리: Microsoft.SqlServer.Replication.BusinessLogicSupport(Microsoft.SqlServer.Replication.BusinessLogicSupport.dll)
구문
‘선언
Public MustOverride Function InvokeErrorHandler ( _
currentChangeState As ChangeStates, _
methodName As String, _
sourceIdentifier As SourceIdentifier, _
sourceDataSet As DataSet, _
ByRef logErrorType As ErrorLogType, _
ByRef errorLogMessage As String, _
errorCode As Integer, _
errorMessage As String, _
ByRef logLevel As Integer, _
ByRef logMessage As String _
) As ActionOnDataError
‘사용 방법
Dim instance As IBusinessLogicResolver
Dim currentChangeState As ChangeStates
Dim methodName As String
Dim sourceIdentifier As SourceIdentifier
Dim sourceDataSet As DataSet
Dim logErrorType As ErrorLogType
Dim errorLogMessage As String
Dim errorCode As Integer
Dim errorMessage As String
Dim logLevel As Integer
Dim logMessage As String
Dim returnValue As ActionOnDataError
returnValue = instance.InvokeErrorHandler(currentChangeState, _
methodName, sourceIdentifier, sourceDataSet, _
logErrorType, errorLogMessage, errorCode, _
errorMessage, logLevel, logMessage)
public abstract ActionOnDataError InvokeErrorHandler(
ChangeStates currentChangeState,
string methodName,
SourceIdentifier sourceIdentifier,
DataSet sourceDataSet,
ref ErrorLogType logErrorType,
ref string errorLogMessage,
int errorCode,
string errorMessage,
ref int logLevel,
ref string logMessage
)
public:
virtual ActionOnDataError InvokeErrorHandler(
ChangeStates currentChangeState,
String^ methodName,
SourceIdentifier sourceIdentifier,
DataSet^ sourceDataSet,
ErrorLogType% logErrorType,
String^% errorLogMessage,
int errorCode,
String^ errorMessage,
int% logLevel,
String^% logMessage
) abstract
abstract InvokeErrorHandler :
currentChangeState:ChangeStates *
methodName:string *
sourceIdentifier:SourceIdentifier *
sourceDataSet:DataSet *
logErrorType:ErrorLogType byref *
errorLogMessage:string byref *
errorCode:int *
errorMessage:string *
logLevel:int byref *
logMessage:string byref -> ActionOnDataError
public abstract function InvokeErrorHandler(
currentChangeState : ChangeStates,
methodName : String,
sourceIdentifier : SourceIdentifier,
sourceDataSet : DataSet,
logErrorType : ErrorLogType,
errorLogMessage : String,
errorCode : int,
errorMessage : String,
logLevel : int,
logMessage : String
) : ActionOnDataError
매개 변수
- currentChangeState
유형: Microsoft.SqlServer.Replication.BusinessLogicSupport.ChangeStates
The current change state.
- methodName
유형: System.String
The method name.
- sourceIdentifier
유형: Microsoft.SqlServer.Replication.BusinessLogicSupport.SourceIdentifier
The source identifier.
- sourceDataSet
유형: System.Data.DataSet
The source data set.
- logErrorType
유형: Microsoft.SqlServer.Replication.BusinessLogicSupport.ErrorLogType%
Controls how replication logs the error.
- errorLogMessage
유형: System.String%
The error log message.
- errorCode
유형: System.Int32
The error code.
- errorMessage
유형: System.String
The error message.
- logLevel
유형: System.Int32%
The log level of the message returned by the business logic handler.
- logMessage
유형: System.String%
The log message provided by the business logic handler.
반환 값
유형: Microsoft.SqlServer.Replication.BusinessLogicSupport.ActionOnDataError
The ActionOnDataError action that will be taken by the process after the business logic handler has executed.