Share via


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
pbCancel
Boolean
属性

注解

可以在包设计或执行期间引发事件 OnError 。 在设计期间,错误显示在 “任务列表 ”窗口中,还会导致设计器图面上的组件形状旁边显示红色 X 图标。 在执行期间,错误事件可能会导致包执行终止。

适用于