Share via


DefaultEvents.OnInformation Metodo

Definizione

Questo evento viene generato ogniqualvolta l'attività deve fornire informazioni.

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)

Parametri

source
DtsObject

Oggetto che ha provocato l'evento.

informationCode
Int32

Valore intero che identifica il messaggio. Questo identificatore deve essere univoco se utilizzato in combinazione con il parametro source, pertanto la combinazione di source e informationCode deve essere univoca. Tuttavia, se utilizzato da solo, informationCode non deve essere univoco.

subComponent
String

Stringa arbitraria che identifica il sottomodulo all'interno di un'origine: ad esempio, la trasformazione in un'attività Pipeline.

description
String

Testo del messaggio.

helpFile
String

Percorso del file della Guida che contiene informazioni dettagliate.

helpContext
Int32

Identificatore dell'argomento nel file della Guida.

idofInterfaceWithError
String

Rappresentazione testuale del GUID dell'interfaccia che ha provocato l'errore.

fireAgain
Boolean

Valore booleano che indica se il client vuole ricevere questo messaggio. Il client deve impostare questo valore su true se vogliono ricevere di nuovo questo evento in futuro.

Implementazioni

Commenti

Rispetto a un avviso, l'evento informativo comunica informazioni importanti che non indicano necessariamente alcuna perdita di dati o altra causa di preoccupazione. Tuttavia, è importante che garantisca più di una voce di log.

Si applica a