IDTSEvents.OnError Metodo

Definizione

Viene chiamata da un'attività o un contenitore quando si verifica un errore.

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

Parametri

source
DtsObject

La fonte dell'errore, l'oggetto che ha causato l'evento.

errorCode
Int32

Un intero che identifica il messaggio di errore. Questo identificatore dovrebbe essere unico quando combinato con il source parametro, quindi la source combinazione e errorCode dovrebbe essere unica. Tuttavia, non ci si aspetta che sia errorCode unico.

subComponent
String

Una stringa arbitraria che identifica il sottomodulo all'interno di una sorgente. Ad esempio, la trasformazione in un compito Pipeline.

description
String

Testo del messaggio.

helpFile
String

Il percorso verso il file Help che contiene informazioni dettagliate.

helpContext
Int32

Identificatore dell'argomento nel file di Aiuto.

idofInterfaceWithError
String

Una rappresentazione testuale del GUID dell'interfaccia che ha causato l'errore.

Valori restituiti

Si applica a