Share via


PackageUpgradeResult.OnError Método

Definición

Activa un evento cuando se produce un error.

public:
 virtual 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
override this.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

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

errorCode
Int32

Un valor de tipo Integer que identifica el mensaje de error.

subComponent
String

Una cadena arbitraria que identifica el submódulo dentro de un origen.

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.

Devoluciones

Boolean

El evento generado.

Implementaciones

Se aplica a