語言

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 例外。

適用於