IDTSEvents100.OnError メソッド

定義

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

public:
 void OnError(Microsoft::SqlServer::Dts::Runtime::Wrapper::IDTSRuntimeObject100 ^ pSource, int ErrorCode, System::String ^ SubComponent, System::String ^ Description, System::String ^ HelpFile, int HelpContext, System::String ^ IDOfInterfaceWithError, [Runtime::InteropServices::Out] bool % pbCancel);
[System.Runtime.InteropServices.DispId(6)]
public void OnError(Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 pSource, int ErrorCode, string SubComponent, string Description, string HelpFile, int HelpContext, string IDOfInterfaceWithError, out bool pbCancel);
[<System.Runtime.InteropServices.DispId(6)>]
abstract member OnError : Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100 * int * string * string * string * int * string * bool -> unit
Public Sub OnError (pSource As IDTSRuntimeObject100, ErrorCode As Integer, SubComponent As String, Description As String, HelpFile As String, HelpContext As Integer, IDOfInterfaceWithError As String, ByRef pbCancel As Boolean)

パラメーター

pSource
IDTSRuntimeObject100

エラーの原因、その出来事を引き起こした物体。

ErrorCode
Int32

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

SubComponent
String

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

Description
String

メッセージのテキスト。

HelpFile
String

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

HelpContext
Int32

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

IDOfInterfaceWithError
String

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

pbCancel
Boolean

誤りをキャンセルするためにtrue;そうでなければ、誤りです。

属性

注釈

詳細については、IDTSEventsを参照してください。

適用対象