Share via


PackageUpgradeResult.OnError 方法

定义

出现错误时引发事件。

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

参数

source
DtsObject

错误的源,导致事件的对象。

errorCode
Int32

一个用于标识错误消息的整数。

subComponent
String

标识源中子模块的任意字符串。

description
String

消息的文本。

helpFile
String

指向包含详细信息的帮助文件的路径。

helpContext
Int32

帮助文件中该主题的标识符。

idofInterfaceWithError
String

导致错误的接口的 GUID 的文本表示形式。

返回

Boolean

引发的事件。

实现

适用于