IDTSComponentEvents.FireError(Int32, String, String, String, Int32) Method

Definition

出现错误时引发事件。Raises an event when an error occurs.

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

Parameters

errorCode
Int32

一个用于标识错误消息的整数。An Integer that identifies the error message.

subComponent
String

一个包含有关事件源的详细信息的字符串。A String that contains more detail about the event source.

description
String

消息的文本。The text of the message.

helpFile
String

指向包含详细信息的帮助文件的路径。The path to the Help file that contains detailed information.

helpContext
Int32

帮助文件中该主题的标识符。The identifier of the topic in the Help file.

Returns

Boolean

一个布尔值,该值指示事件应继续激发还是停止激发。A Boolean that indicates whether the event should continue firing or stop firing. 值为 true 指示事件应继续激发。A value of true indicates that the event should continue firing.

Remarks

多个事件有一个 subComponent 参数,该参数允许在事件源标识中获得更多粒度。Several of the events have a subComponent parameter that allows for even greater granularity in event source identification.

Applies to