IDTSEvents100.OnError Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Appelée par une tâche ou un conteneur lorsqu'une erreur se produit.
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)
Paramètres
- pSource
- IDTSRuntimeObject100
La source de l’erreur, l’objet qui a causé l’événement.
- ErrorCode
- Int32
Un entier qui identifie le message d’erreur. Cet identifiant doit être unique lorsqu’il est combiné avec le source paramètre, donc la source combinaison et errorCode doit être unique. Cependant, il n’est pas censé errorCode être unique à lui seul.
- SubComponent
- String
Une chaîne arbitraire qui identifie le sous-module au sein d’une source. Par exemple, la transformation dans une tâche Pipeline.
- Description
- String
Le texte du message.
- HelpFile
- String
Le chemin vers le fichier d’aide qui contient des informations détaillées.
- HelpContext
- Int32
Identifiant du sujet dans le fichier d’aide.
- IDOfInterfaceWithError
- String
Une représentation textuelle de l’interface qui a causé l’erreur.
- pbCancel
- Boolean
Fidèle à l’annulation de l’erreur ; sinon, faux.
- Attributs
Remarques
Pour plus d’informations, consultez IDTSEvents.