语言

ASTaskBase.FireError 方法

定义

当发生错误时,会触发事件。

重载

名称 说明
FireError(String, String)

当发生错误时,会触发事件。

FireError(Int32, String, String, String)

当发生错误时,会触发事件。

FireError(String, String)

当发生错误时,会触发事件。

protected:
 void FireError(System::String ^ subComponent, System::String ^ message);
protected void FireError(string subComponent, string message);
member this.FireError : string * string -> unit
Protected Sub FireError (subComponent As String, message As String)

参数

subComponent
String

包含事件源更多细节的字符串。

message
String

消息的文本。

适用于

FireError(Int32, String, String, String)

当发生错误时,会触发事件。

protected:
 void FireError(int errorCode, System::String ^ subComponent, System::String ^ message, System::String ^ helpLink);
protected void FireError(int errorCode, string subComponent, string message, string helpLink);
member this.FireError : int * string * string * string -> unit
Protected Sub FireError (errorCode As Integer, subComponent As String, message As String, helpLink As String)

参数

errorCode
Int32

一个整数用于识别错误消息。

subComponent
String

包含事件源更多细节的字符串。

message
String

消息的文本。

helpLink
String

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

适用于