Metodo IDTSEvents100.OnError

Questa API supporta l'infrastruttura SQL Server 2012 e non può essere utilizzata direttamente dal codice.

Called by a task or container when an error occurs.

Spazio dei nomi  Microsoft.SqlServer.Dts.Runtime.Wrapper
Assembly:  Microsoft.SqlServer.DTSRuntimeWrap (in Microsoft.SqlServer.DTSRuntimeWrap.dll)

Sintassi

'Dichiarazione
Sub OnError ( _
    pSource As IDTSRuntimeObject100, _
    ErrorCode As Integer, _
    SubComponent As String, _
    Description As String, _
    HelpFile As String, _
    HelpContext As Integer, _
    IDOfInterfaceWithError As String, _
    <OutAttribute> ByRef pbCancel As Boolean _
)
'Utilizzo
Dim instance As IDTSEvents100 
Dim pSource As IDTSRuntimeObject100 
Dim ErrorCode As Integer 
Dim SubComponent As String 
Dim Description As String 
Dim HelpFile As String 
Dim HelpContext As Integer 
Dim IDOfInterfaceWithError As String 
Dim pbCancel As Boolean

instance.OnError(pSource, ErrorCode, SubComponent, _
    Description, HelpFile, HelpContext, _
    IDOfInterfaceWithError, pbCancel)
void OnError(
    IDTSRuntimeObject100 pSource,
    int ErrorCode,
    string SubComponent,
    string Description,
    string HelpFile,
    int HelpContext,
    string IDOfInterfaceWithError,
    out bool pbCancel
)
void OnError(
    [InAttribute] IDTSRuntimeObject100^ pSource, 
    [InAttribute] int ErrorCode, 
    [InAttribute] String^ SubComponent, 
    [InAttribute] String^ Description, 
    [InAttribute] String^ HelpFile, 
    [InAttribute] int HelpContext, 
    [InAttribute] String^ IDOfInterfaceWithError, 
    [OutAttribute] bool% pbCancel
)
abstract OnError : 
        pSource:IDTSRuntimeObject100 * 
        ErrorCode:int * 
        SubComponent:string * 
        Description:string * 
        HelpFile:string * 
        HelpContext:int * 
        IDOfInterfaceWithError:string * 
        pbCancel:bool byref -> unit
function OnError(
    pSource : IDTSRuntimeObject100, 
    ErrorCode : int, 
    SubComponent : String, 
    Description : String, 
    HelpFile : String, 
    HelpContext : int, 
    IDOfInterfaceWithError : String, 
    pbCancel : boolean
)

Parametri

  • ErrorCode
    Tipo: System.Int32
    An Integer that identifies the error message. This identifier should be unique when combined with the source parameter, so the source and errorCode combination should be unique. However, the errorCode alone is not expected to be unique.
  • SubComponent
    Tipo: System.String
    An arbitrary string that identifies the sub-module within a source. For example, the transform in a Pipeline task.
  • HelpFile
    Tipo: System.String
    The path to the Help file that contains detailed information.
  • HelpContext
    Tipo: System.Int32
    Identifier of the topic in the Help file.
  • IDOfInterfaceWithError
    Tipo: System.String
    A textual representation of the GUID of the interface that caused the error.
  • pbCancel
    Tipo: System.Boolean%
    true to cancel the error; otherwise, false.

Osservazioni

For more information, see IDTSEvents.

Vedere anche

Riferimento

IDTSEvents100 Interfaccia

Spazio dei nomi Microsoft.SqlServer.Dts.Runtime.Wrapper