IDTSEvents.OnError 메서드

정의

오류가 발생할 때 태스크 또는 컨테이너에 의해 호출됩니다.

public:
 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 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
Public 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

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

subComponent
String

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

description
String

메시지의 텍스트입니다.

helpFile
String

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

helpContext
Int32

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

idofInterfaceWithError
String

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

반환

적용 대상