语言

IDTSEvents100.OnError 方法

定义

出现错误时由任务或容器调用。

public:
 void OnError(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100 ^ pSource, int ErrorCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, System::String ^ IDOfInterfaceWithError, [Runtime::InteropServices::Out] bool % pbCancel);
[System.Runtime.InteropServices.DispId(6)]
public void OnError(Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 pSource, int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, string IDOfInterfaceWithError, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(6)>]
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 * int * string * string * string * int * string * bool -> unit
Public Sub OnError (pSource As IDTSRuntimeObject100, ErrorCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, IDOfInterfaceWithError As String, ByRef pbCancel As Boolean)

参数

pSource
IDTSRuntimeObject100

错误的源头,导致事件的物体。

ErrorCode
Int32

一个整数用于识别错误消息。 该标识符与参数组合 source 时应当唯一,因此 sourceerrorCode 组合应当是唯一的。 然而, errorCode 单独的并不被期望是唯一的。

SubComponent
String

一个任意字符串,用于标识源中的子模。 例如,管道任务中的变换。

Description
String

消息的文本。

HelpFile
String

通往包含详细信息的帮助文件的路径。

HelpContext
Int32

帮助文件中主题的标识符。

IDOfInterfaceWithError
String

这是导致错误的接口GUID的文本表示。

pbCancel
Boolean

true以消除错误;否则,就是假的。

属性

注解

有关详细信息,请参阅 IDTSEvents

适用于