语言

IDTSBuffer100.SetErrorInfo(Int32, Int32, Int32, Int32) 方法

定义

设置一行的错误信息。

public:
 void SetErrorInfo(int hRow, int lOutputID, int lErrorCode, int lErrorColumn);
public void SetErrorInfo(int hRow, int lOutputID, int lErrorCode, int lErrorColumn);
abstract member SetErrorInfo : int * int * int * int -> unit
Public Sub SetErrorInfo (hRow As Integer, lOutputID As Integer, lErrorCode As Integer, lErrorColumn As Integer)

参数

hRow
Int32

行把手。

lOutputID
Int32

发送到错误的ID IDTSOutput100

lErrorCode
Int32

组件定义了处理列时发生的错误代码。

lErrorColumn
Int32

导致错误的列的血统ID。

注解

该方法用于为指向异步错误输出的行提供错误信息。 在同步输出中指向错误行时,采用该 DirectErrorRow 方法,错误代码和错误列信息作为参数包含在方法中。

由组件定义的错误码必须大于零。

如果 IDTSOutput100 参数指定的 lOutputID 对象不是错误输出,则 DTS_E_DIRECTTONONERROROUTPUT 会发生异常。

适用于