Share via


DefaultEvents.OnInformation 方法

定义

每当任务要提供信息时引发此事件。

public:
 virtual void OnInformation(Microsoft::SqlServer::Dts::Runtime::DtsObject ^ source, int informationCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, System::String ^ idofInterfaceWithError, bool % fireAgain);
public virtual void OnInformation (Microsoft.SqlServer.Dts.Runtime.DtsObject source, int informationCode, string subComponent, string description, string helpFile, int helpContext, string idofInterfaceWithError, ref bool fireAgain);
abstract member OnInformation : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string * bool -> unit
override this.OnInformation : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string * bool -> unit
Public Overridable Sub OnInformation (source As DtsObject, informationCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, idofInterfaceWithError As String, ByRef fireAgain As Boolean)

参数

source
DtsObject

导致事件的对象。

informationCode
Int32

一个用于标识消息的整数。 当与 source 参数结合使用时,此标识符应是唯一的,因此,sourceinformationCode 组合应是唯一的。 然而,仅仅是 informationCode 并不一定要求具有唯一性。

subComponent
String

标识源中子模块的任意字符串。 例如,管道任务中的转换。

description
String

消息的文本。

helpFile
String

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

helpContext
Int32

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

idofInterfaceWithError
String

导致错误的接口的 GUID 的文本表示形式。

fireAgain
Boolean

一个布尔值,指示客户端是否要接收此消息。 如果客户端希望将来再次接收此事件,客户端必须将此设置为 true。

实现

注解

与警告相比,信息性事件传达不一定表示任何数据丢失或其他原因的重要信息。 但是,它足以保证超过日志条目。

适用于