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

エラー メッセージを識別する Integer です。

subComponent
String

ソース内のサブモジュールを識別する任意の文字列です

description
String

メッセージのテキストです。

helpFile
String

詳細な情報を含むヘルプ ファイルのパスです。

helpContext
Int32

ヘルプ ファイルのトピックの識別子です。

idofInterfaceWithError
String

エラーの原因となったインターフェイスの GUID のテキスト表現です。

戻り値

Boolean

発生したイベントです。

実装

適用対象