IDTSComponentEvents.FireError(Int32, String, String, String, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当发生错误时,会触发事件。
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);
abstract member 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
帮助文件中主题的标识符。
返回
一个布尔值,表示事件应继续触发还是停止触发。 值为真表示事件应继续触发。
注解
其中几个事件有一个 subComponent 参数,使事件源识别更加细致。