IDTSEvents.OnError メソッド

定義

エラーが発生すると、タスクまたはコンテナーによって呼び出されます。

public:
 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
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

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

subComponent
String

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

description
String

メッセージのテキスト。

helpFile
String

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

helpContext
Int32

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

idofInterfaceWithError
String

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

返品

適用対象