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

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

SubComponent
String

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

Description
String

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

HelpFile
String

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

HelpContext
Int32

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

IDOfInterfaceWithError
String

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

pbCancel
Boolean

エラーを取り消す場合は true。それ以外の場合は false。

属性

注釈

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

適用対象