Udostępnij za pośrednictwem


Metoda IDTSEvents100.OnError

Ten interfejs API obsługuje infrastrukturę programu i nie jest przeznaczony do użycia bezpośrednio w kodzie.

Aby uzyskać więcej informacji, zobacz temat IDTSEvents.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime.Wrapper
Zestaw:  Microsoft.SqlServer.DTSRuntimeWrap (w Microsoft.SqlServer.DTSRuntimeWrap.dll)

Składnia

'Deklaracja
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 _
)
'Użycie
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
)

Parametry