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

エラー メッセージを識別する Integer です。 source パラメーターと組み合わせる場合、sourceerrorCode の組み合わせが一意となるよう、この識別子は一意である必要があります。 ただし、errorCode が単独で一意である必要はありません。

subComponent
String

ソース内のサブモジュールを識別する任意の文字列です (パイプライン タスクの変換など)。

description
String

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

helpFile
String

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

helpContext
Int32

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

idofInterfaceWithError
String

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

戻り値

適用対象