言語

DefaultEvents.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 virtual 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 Overridable 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

エラーメッセージを識別する整数です。 この識別子は source パラメータと組み合わせると一意であるべきなので、 sourceerrorCode の組み合わせも一意であるべきです。 しかし、 errorCode だけでは唯一無二とは期待されていません。

subComponent
String

ソース内の部分加群を識別する任意の文字列です。 例えば、パイプラインタスクの変換です。

description
String

メッセージのテキスト。

helpFile
String

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

helpContext
Int32

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

idofInterfaceWithError
String

エラーを引き起こしたインターフェースのGUIDのテキスト表現。

返品

タスクの実行を継続すべきかどうかを示すブール値です。 trueの値は、エラーがタスクをキャンセルすべきであることを示します。 falseの値は、エラーがタスクの実行を停止させるべきではなく、タスクは継続すべきであることを示します。

実装

適用対象