IDTSEvents.OnInformation 方法

定义

每当任务需要提供信息时,都会被呼叫。

public:
 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 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
Public 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

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

注解

与警告相比,信息事件传递的重要信息,不一定意味着任何数据丢失或其他令人担忧的原因。 然而,它的重要性足以让它不仅仅是日志条目。

适用于