IDTSComponentMetaData100.FireError 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
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 图标。 在执行期间,错误事件可能会导致包执行终止。