Share via


IDTSComponentEvents.FireWarning(Int32, String, String, String, Int32) 方法

定义

当任务处于不能证明出错但有必要向客户端发出警报的状态时,引发事件。

public:
 void FireWarning(int warningCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext);
public void FireWarning (int warningCode, string subComponent, string description, string helpFile, int helpContext);
abstract member FireWarning : int * string * string * string * int -> unit
Public Sub FireWarning (warningCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer)

参数

warningCode
Int32

一个用于标识警告消息的整数。

subComponent
String

一个包含有关事件源的详细信息的字符串。

description
String

消息的文本。

helpFile
String

指向包含详细信息的帮助文件的路径。

helpContext
Int32

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

注解

由于触发事件可能很昂贵,因此运行时引擎提供了一种用于禁止你感兴趣的事件的机制。 每个事件触发方法都有一个 FireAgain 参数。 如果此变量的值在 false方法返回后,调用方将不会在当前执行期间再次触发此事件。

其中几个事件具有一个 subComponent 参数,该参数允许在事件源标识中更精细。

适用于