IDTSBuffer100.SetErrorInfo(Int32, Int32, Int32, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置行的错误信息。
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
要将该行发送到的错误 IDTSOutput100 的 ID。
- lErrorCode
- Int32
当处理此列时发生的组件定义的错误代码。
- lErrorColumn
- Int32
导致此错误的列的沿袭 ID。
注解
此方法用于为定向到异步错误输出的行提供错误信息。 为同步输出定向错误行时, DirectErrorRow 将使用该方法,并将错误代码和错误列信息作为方法的参数包含在内。
组件定义的错误代码必须大于零。
IDTSOutput100如果参数指定的lOutputID
对象不是错误输出,DTS_E_DIRECTTONONERROROUTPUT则会发生异常。