Share via


PackageUpgradeResult.OnError Méthode

Définition

Déclenche un événement lorsqu'une erreur se produit.

public:
 virtual 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
override this.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

Source de l'erreur, objet qui a provoqué l'événement.

errorCode
Int32

Valeur Integer qui identifie le message d'erreur.

subComponent
String

Chaîne arbitraire qui identifie le sous-module au sein d'une source.

description
String

Texte du message.

helpFile
String

Chemin d'accès au fichier d'aide qui contient des informations détaillées.

helpContext
Int32

Identificateur de la rubrique dans le fichier d'aide.

idofInterfaceWithError
String

Représentation textuelle du GUID de l'interface a l'origine de l'erreur.

Retours

Boolean

Événement déclenché.

Implémente

S’applique à