IDTSEvents.OnError Método

Definición

Es llamado por una tarea o contenedor cuando se produce un error.

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

Parámetros

source
DtsObject

La fuente del error, el objeto que causó el evento.

errorCode
Int32

Un entero que identifica el mensaje de error. Este identificador debe ser único cuando se combina con el source parámetro, por lo que la source combinación y errorCode debe ser única. Sin embargo, no se espera que el errorCode solo sea único.

subComponent
String

Una cadena arbitraria que identifica el submódulo dentro de una fuente. Por ejemplo, la transformación en una tarea de Pipeline.

description
String

El texto del mensaje.

helpFile
String

La ruta hacia el archivo de Ayuda que contiene información detallada.

helpContext
Int32

Identificador del tema en el archivo de ayuda.

idofInterfaceWithError
String

Una representación textual del GUID de la interfaz que causó el error.

Devoluciones

Se aplica a