语言

EventsObjectWrapper.FireError(Int32, String, String, String, Int32) 方法

定义

当出现错误时,会触发事件。

public:
 bool FireError(int errorCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext);
public bool FireError(int errorCode, string subComponent, string description, string helpFile, int helpContext);
member this.FireError : int * string * string * string * int -> bool
Public Function FireError (errorCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer) As Boolean

参数

errorCode
Int32

识别错误信息。

subComponent
String

包含更多关于事件源的详细信息。

description
String

消息的文本。

helpFile
String

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

helpContext
Int32

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

返回

如果事件继续发射,这也成立;否则,就是假的。

适用于