IDTSEvents.OnError Méthode

Définition

Appelée par une tâche ou un conteneur lorsqu'une erreur se produit.

public:
 bool OnError(Microsoft::SqlServer::Dts::Runtime::DtsObject ^ source, int errorCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, System::String ^ idofInterfaceWithError);
public bool OnError(Microsoft.SqlServer.Dts.Runtime.DtsObject source, int errorCode, string subComponent, string description, string helpFile, int helpContext, string idofInterfaceWithError);
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string -> bool
Public Function OnError (source As DtsObject, errorCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, idofInterfaceWithError As String) As Boolean

Paramètres

source
DtsObject

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.

Retours

S’applique à