语言

IDTSComponentEvents100.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(2)]
public void FireError(int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(2)>]
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

当该方法返回时,包含一个布尔值,指示事件应继续触发还是停止触发。 值为真表示事件应继续触发。 值为false表示事件应停止触发。 此参数未初始化传递。

实现

属性

适用于