IDTSEvents100.OnError Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Viene chiamata da un'attività o un contenitore quando si verifica un errore.
public:
void OnError(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100 ^ pSource, int ErrorCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, System::String ^ IDOfInterfaceWithError, [Runtime::InteropServices::Out] bool % pbCancel);
[System.Runtime.InteropServices.DispId(6)]
public void OnError(Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 pSource, int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, string IDOfInterfaceWithError, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(6)>]
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 * int * string * string * string * int * string * bool -> unit
Public Sub OnError (pSource As IDTSRuntimeObject100, ErrorCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, IDOfInterfaceWithError As String, ByRef pbCancel As Boolean)
Parametri
- pSource
- IDTSRuntimeObject100
La fonte dell'errore, l'oggetto che ha causato l'evento.
- ErrorCode
- Int32
Un intero che identifica il messaggio di errore. Questo identificatore dovrebbe essere unico quando combinato con il source parametro, quindi la source combinazione e errorCode dovrebbe essere unica. Tuttavia, non ci si aspetta che sia errorCode unico.
- SubComponent
- String
Una stringa arbitraria che identifica il sottomodulo all'interno di una sorgente. Ad esempio, la trasformazione in un compito Pipeline.
- Description
- String
Testo del messaggio.
- HelpFile
- String
Il percorso verso il file Help che contiene informazioni dettagliate.
- HelpContext
- Int32
Identificatore dell'argomento nel file di Aiuto.
- IDOfInterfaceWithError
- String
Una rappresentazione testuale del GUID dell'interfaccia che ha causato l'errore.
- pbCancel
- Boolean
Fedele a annullare l'errore; altrimenti, falso.
- Attributi
Commenti
Per altre informazioni, vedere IDTSEvents.