IDTSEvents100.OnError メソッド
この API は、SQL Server 2012 インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。
エラーが発生すると、タスクまたはコンテナーによって呼び出されます。
名前空間: Microsoft.SqlServer.Dts.Runtime.Wrapper
アセンブリ: Microsoft.SqlServer.DTSRuntimeWrap (Microsoft.SqlServer.DTSRuntimeWrap.dll)
構文
'宣言
Sub OnError ( _
pSource As IDTSRuntimeObject100, _
ErrorCode As Integer, _
SubComponent As String, _
Description As String, _
HelpFile As String, _
HelpContext As Integer, _
IDOfInterfaceWithError As String, _
<OutAttribute> ByRef pbCancel As Boolean _
)
'使用
Dim instance As IDTSEvents100
Dim pSource As IDTSRuntimeObject100
Dim ErrorCode As Integer
Dim SubComponent As String
Dim Description As String
Dim HelpFile As String
Dim HelpContext As Integer
Dim IDOfInterfaceWithError As String
Dim pbCancel As Boolean
instance.OnError(pSource, ErrorCode, SubComponent, _
Description, HelpFile, HelpContext, _
IDOfInterfaceWithError, pbCancel)
void OnError(
IDTSRuntimeObject100 pSource,
int ErrorCode,
string SubComponent,
string Description,
string HelpFile,
int HelpContext,
string IDOfInterfaceWithError,
out bool pbCancel
)
void OnError(
[InAttribute] IDTSRuntimeObject100^ pSource,
[InAttribute] int ErrorCode,
[InAttribute] String^ SubComponent,
[InAttribute] String^ Description,
[InAttribute] String^ HelpFile,
[InAttribute] int HelpContext,
[InAttribute] String^ IDOfInterfaceWithError,
[OutAttribute] bool% pbCancel
)
abstract OnError :
pSource:IDTSRuntimeObject100 *
ErrorCode:int *
SubComponent:string *
Description:string *
HelpFile:string *
HelpContext:int *
IDOfInterfaceWithError:string *
pbCancel:bool byref -> unit
function OnError(
pSource : IDTSRuntimeObject100,
ErrorCode : int,
SubComponent : String,
Description : String,
HelpFile : String,
HelpContext : int,
IDOfInterfaceWithError : String,
pbCancel : boolean
)
パラメーター
- pSource
型: Microsoft.SqlServer.Dts.Runtime.Wrapper.IDTSRuntimeObject100
エラーのソースであり、イベントの原因になったオブジェクトです。
- ErrorCode
型: System.Int32
エラー メッセージを識別する Integer です。 source パラメーターと組み合わせる場合、source と errorCode の組み合わせが一意となるよう、この識別子は一意である必要があります。 ただし、errorCode が単独で一意である必要はありません。
- SubComponent
型: System.String
ソース内のサブモジュールを識別する任意の文字列です (パイプライン タスクの変換など)。
- Description
型: System.String
メッセージのテキストです。
- HelpFile
型: System.String
詳細な情報を含むヘルプ ファイルのパスです。
- HelpContext
型: System.Int32
ヘルプ ファイルのトピックの識別子です。
- IDOfInterfaceWithError
型: System.String
エラーの原因となったインターフェイスの GUID のテキスト表現です。
- pbCancel
型: System.Boolean%
エラーを取り消す場合は true、それ以外の場合は false です。
説明
詳細については、「IDTSEvents」を参照してください。