Share via


IDTSComponentEvents.FireInformation 方法

定义

引发包含信息的事件。

public:
 void FireInformation(int informationCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, bool % fireAgain);
public void FireInformation (int informationCode, string subComponent, string description, string helpFile, int helpContext, ref bool fireAgain);
abstract member FireInformation : int * string * string * string * int * bool -> unit
Public Sub FireInformation (informationCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, ByRef fireAgain As Boolean)

参数

informationCode
Int32

标识信息性消息的整数。

subComponent
String

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

description
String

消息的文本。

helpFile
String

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

helpContext
Int32

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

fireAgain
Boolean

指示此操作应继续触发或停止触发的布尔值。 true 值指示它应继续触发。

注解

信息事件的定义是,它对于始终向用户显示足够重要的消息非常重要。 它不同于警告,即没有潜在的损害是暗示的,它不同于日志记录,因为它不能关闭或筛选,并且它可以由事件处理程序处理。

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

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

适用于