Compartir a través de


SetErrorInfo Método

Sets the error information for a row.

Espacio de nombres:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
Ensamblado:  Microsoft.SqlServer.DTSPipelineWrap (en Microsoft.SqlServer.DTSPipelineWrap.dll)

Sintaxis

'Declaración
Sub SetErrorInfo ( _
    hRow As Integer, _
    lOutputID As Integer, _
    lErrorCode As Integer, _
    lErrorColumn As Integer _
)
'Uso
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
)

Parámetros

  • lErrorCode
    Tipo: System. . :: . .Int32
    The component defined error code that occurred while processing the column.

Notas

This method is used to provide error information for a row that is directed to an asynchronous error output. When directing error rows for synchronous outputs, the DirectErrorRow method is used and the error code and error column information are included as parameters to the method.

The error code, defined by the component, must be greater than zero.

If the IDTSOutput100 object specified by the lOutputID parameter is not an error output, an DTS_E_DIRECTTONONERROROUTPUT exception occurs.