ASTaskBase.FireError 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
出现错误时引发事件。
重载
| 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 -> unitProtected 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 -> unitProtected Sub FireError (errorCode As Integer, subComponent As String, message As String, helpLink As String)参数
- errorCode
- Int32
一个用于标识错误消息的整数。
- subComponent
- String
一个包含有关事件源的详细信息的字符串。
- message
- String
消息的文本。
- helpLink
- String
指向包含详细信息的帮助文件的路径。