语言

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

一个布尔值表示该信号应继续或停止发射。 值为真则表示应继续发射。

注解

信息事件的定义是,它是一个足够重要的消息,以至于总是会向大多数用户展示。 它与警告不同,警告没有潜在损害,也不同于登录时无法关闭或过滤,且事件处理程序可以处理。

由于触发事件可能成本高昂,运行时引擎提供了一种机制来抑制你不感兴趣的事件。 每种事件触发方法都有参数 FireAgain 。 如果该变量的值为 false,方法返回后调用者在当前执行期间不会再次触发该事件。

其中几个事件有一个 subComponent 参数,使事件源识别更加细致。

适用于