Share via


DefaultEvents.OnInformation Méthode

Définition

Cet événement est déclenché lorsque la tâche doit fournir des informations.

public:
 virtual void OnInformation(Microsoft::SqlServer::Dts::Runtime::DtsObject ^ source, int informationCode, System::String ^ subComponent, System::String ^ description, System::String ^ helpFile, int helpContext, System::String ^ idofInterfaceWithError, bool % fireAgain);
public virtual void OnInformation (Microsoft.SqlServer.Dts.Runtime.DtsObject source, int informationCode, string subComponent, string description, string helpFile, int helpContext, string idofInterfaceWithError, ref bool fireAgain);
abstract member OnInformation : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string * bool -> unit
override this.OnInformation : Microsoft.SqlServer.Dts.Runtime.DtsObject * int * string * string * string * int * string * bool -> unit
Public Overridable Sub OnInformation (source As DtsObject, informationCode As Integer, subComponent As String, description As String, helpFile As String, helpContext As Integer, idofInterfaceWithError As String, ByRef fireAgain As Boolean)

Paramètres

source
DtsObject

Objet ayant déclenché l'événement.

informationCode
Int32

Entier qui identifie le message. Cet identificateur doit être unique lorsqu'il est associé au paramètre source. La combinaison source et informationCode doit donc être unique. Toutefois, le système ne s'attend pas à ce que informationCode soit unique lorsqu'il est employé seul.

subComponent
String

Chaîne arbitraire qui identifie le sous-module au sein d'une source. Par exemple, la transformation dans une tâche Pipeline.

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.

fireAgain
Boolean

Valeur booléenne qui indique si le client souhaite recevoir ce message. Le client doit définir cette valeur sur true s’il souhaite recevoir cet événement à nouveau à l’avenir.

Implémente

Remarques

Par rapport à un avertissement, l’événement informationnel communique des informations importantes qui ne indiquent pas nécessairement une perte de données ou une autre cause de préoccupation. Toutefois, il est important qu’il justifie plus qu’une entrée de journal.

S’applique à