DefaultEvents.OnError 메서드

정의

이 이벤트는 오류가 발생할 때 태스크 또는 컨테이너에 의해 발생합니다.

public:
 virtual bool OnError(Microsoft::SqlServer::Dts::Runtime::DtsObject ^ source, int errorCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, System::String ^ idofInterfaceWithError);
public virtual bool OnError (Microsoft.SqlServer.Dts.Runtime.DtsObject source, int errorCode, string subComponent, string description, string helpFile, int helpContext, string idofInterfaceWithError);
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string -> bool
override this.OnError : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string -> bool
Public Overridable Function OnError (source As DtsObject, errorCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, idofInterfaceWithError As String) As Boolean

매개 변수

source
DtsObject

이벤트를 일으킨 개체입니다.

errorCode
Int32

오류 메시지를 식별하는 정수입니다. sourcesource의 조합은 중복되지 않아야 하므로 이 식별자를 errorCode 매개 변수와 함께 사용하는 경우에는 식별자가 고유해야 합니다. 그러나 errorCode만 단독으로 사용하는 경우에는 식별자가 고유하지 않아도 됩니다.

subComponent
String

원본 내 하위 모듈을 식별하는 임의의 문자열입니다. 파이프라인 태스크의 변환을 예로 들 수 있습니다.

description
String

메시지의 텍스트입니다.

helpFile
String

자세한 정보가 포함된 도움말 파일의 경로입니다.

helpContext
Int32

도움말 파일의 항목에 대한 식별자입니다.

idofInterfaceWithError
String

오류를 발생시킨 인터페이스의 GUID를 나타내는 텍스트 표현입니다.

반환

태스크를 계속 실행할지 여부를 지정하는 Boolean입니다. 값이 true이면 오류로 인해 태스크를 취소해야 함을 나타냅니다. false 값은 오류가 태스크 실행을 중지해서는 안 되지만 작업이 계속되어야 했음을 나타냅니다.

구현

적용 대상