语言

IDTSComponentMetaData100.FireError 方法

定义

public:
 void FireError(int ErrorCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, [Runtime::InteropServices::Out] bool % pbCancel);
[System.Runtime.InteropServices.DispId(129)]
public void FireError(int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(129)>]
abstract member FireError : int * string * string * string * int * bool -> unit
Public Sub FireError (ErrorCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, ByRef pbCancel As Boolean)

参数

ErrorCode
Int32

组件定义的错误代码。

SubComponent
String

引发事件的组件名称。

Description
String

对错误的说明。

HelpFile
String

帮助文件提供了关于错误事件的更多信息。

HelpContext
Int32

错误的上下文ID。

pbCancel
Boolean

指定是否取消该组件的执行。

属性

注解

OnError事件可以在包设计或执行过程中提出。 设计时,错误会显示在 任务列表 窗口,并导致设计器表面组件形状旁出现红色X图标。 在执行过程中,错误事件可能导致包执行终止。

适用于