IDTSComponentEvents.FireError メソッド
エラーが発生したときにイベントを発生させます。
名前空間: Microsoft.SqlServer.Dts.Runtime
アセンブリ: Microsoft.SqlServer.ManagedDTS (Microsoft.SqlServer.ManagedDTS.dll)
構文
'宣言
Function FireError ( _
errorCode As Integer, _
subComponent As String, _
description As String, _
helpFile As String, _
helpContext As Integer _
) As Boolean
'使用
Dim instance As IDTSComponentEvents
Dim errorCode As Integer
Dim subComponent As String
Dim description As String
Dim helpFile As String
Dim helpContext As Integer
Dim returnValue As Boolean
returnValue = instance.FireError(errorCode, _
subComponent, description, helpFile, _
helpContext)
bool FireError(
int errorCode,
string subComponent,
string description,
string helpFile,
int helpContext
)
bool FireError(
int errorCode,
String^ subComponent,
String^ description,
String^ helpFile,
int helpContext
)
abstract FireError :
errorCode:int *
subComponent:string *
description:string *
helpFile:string *
helpContext:int -> bool
function FireError(
errorCode : int,
subComponent : String,
description : String,
helpFile : String,
helpContext : int
) : boolean
パラメーター
- errorCode
型: System.Int32
エラー メッセージを識別する Integer です。
- subComponent
型: System.String
イベント ソースについての詳細を含む String です。
- description
型: System.String
メッセージのテキストです。
- helpFile
型: System.String
詳細な情報を含むヘルプ ファイルのパスです。
- helpContext
型: System.Int32
ヘルプ ファイルのトピックの識別子です。
戻り値
型: System.Boolean
起動処理を続行するか停止するかを示す Boolean です。値が true の場合、起動処理が続行されます。
説明
いくつかのイベントには subComponent パラメーターがあります。このパラメーターを使用すると、より詳細なイベント ソースを指定できます。