Bagikan melalui


PackageUpgradeResult.OnError Metode

Definisi

Memunculkan peristiwa ketika terjadi kesalahan.

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

Parameter

source
DtsObject

Sumber kesalahan, objek yang menyebabkan peristiwa.

errorCode
Int32

Bilangan bulat yang mengidentifikasi pesan kesalahan.

subComponent
String

String arbitrer yang mengidentifikasi sub-modul dalam sumber.

description
String

Teks pesan.

helpFile
String

Jalur ke file Bantuan yang berisi informasi terperinci.

helpContext
Int32

Pengidentifikasi topik dalam file Bantuan.

idofInterfaceWithError
String

Representasi tekstual GUID antarmuka yang menyebabkan kesalahan.

Mengembalikan

Peristiwa yang dibesarkan.

Penerapan

Berlaku untuk