IDTSEvents100.OnError Método

Definición

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

public:
 void OnError(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100 ^ pSource, int ErrorCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, System::String ^ IDOfInterfaceWithError, [Runtime::InteropServices::Out] bool % pbCancel);
[System.Runtime.InteropServices.DispId(6)]
public void OnError (Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 pSource, int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, string IDOfInterfaceWithError, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(6)>]
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 * int * string * string * string * int * string * bool -> unit
Public Sub OnError (pSource As IDTSRuntimeObject100, ErrorCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, IDOfInterfaceWithError As String, ByRef pbCancel As Boolean)

Parámetros

pSource
IDTSRuntimeObject100

El origen del error, el objeto que produjo el evento.

ErrorCode
Int32

Un valor de tipo Integer que identifica el mensaje de error. Este identificador debería ser único cuando se combina con el parámetro source, de modo que la combinación de source y errorCode debería ser única. Sin embargo, no se espera que errorCode sea único cuando está solo.

SubComponent
String

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

Description
String

Texto del mensaje.

HelpFile
String

La ruta de acceso al 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 produjo el error.

pbCancel
Boolean

true para cancelar el error; de lo contrario, false.

Atributos

Comentarios

Para obtener más información, vea IDTSEvents.

Se aplica a