Condividi tramite


PackageUpgradeResult.OnError Metodo

Definizione

Genera un evento quando si verifica un errore.

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

Parametri

source
DtsObject

Origine dell'errore, ovvero l'oggetto che ha provocato l'evento.

errorCode
Int32

Integer che identifica il messaggio di errore.

subComponent
String

Stringa arbitraria che identifica il sottomodulo all'interno di un'origine:

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.

Restituisce

Boolean

Evento generato.

Implementazioni

Si applica a