SetErrorInfo メソッド

行のエラー情報を設定します。

名前空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
アセンブリ:  Microsoft.SqlServer.DTSPipelineWrap (Microsoft.SqlServer.DTSPipelineWrap.dll)

構文

'宣言
Sub SetErrorInfo ( _
    hRow As Integer, _
    lOutputID As Integer, _
    lErrorCode As Integer, _
    lErrorColumn As Integer _
)
'使用
Dim instance As IDTSBuffer100
Dim hRow As Integer
Dim lOutputID As Integer
Dim lErrorCode As Integer
Dim lErrorColumn As Integer

instance.SetErrorInfo(hRow, lOutputID, _
    lErrorCode, lErrorColumn)
void SetErrorInfo(
    int hRow,
    int lOutputID,
    int lErrorCode,
    int lErrorColumn
)
void SetErrorInfo(
    int hRow, 
    int lOutputID, 
    int lErrorCode, 
    int lErrorColumn
)
abstract SetErrorInfo : 
        hRow:int * 
        lOutputID:int * 
        lErrorCode:int * 
        lErrorColumn:int -> unit 
function SetErrorInfo(
    hRow : int, 
    lOutputID : int, 
    lErrorCode : int, 
    lErrorColumn : int
)

パラメーター

  • lErrorCode
    型: System. . :: . .Int32
    列の処理中に発生したコンポーネント定義のエラー コードです。

説明

このメソッドは、非同期のエラー出力に送信される行のエラー情報を提供するために使用されます。同期出力のエラー行を出力指定する場合、DirectErrorRow メソッドが使用され、エラー コードとエラー列情報がメソッドのパラメータとして含まれます。

コンポーネントで定義されているエラー コードは、0 より大きい値である必要があります。

lOutputID パラメータで指定した IDTSOutput100 オブジェクトがエラー出力でない場合、DTS_E_DIRECTTONONERROROUTPUT 例外が発生します。