次の方法で共有


IDTSComponentMetaData100.FireError メソッド

OnError イベントを発生させます。

名前空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
アセンブリ:  Microsoft.SqlServer.DTSPipelineWrap (Microsoft.SqlServer.DTSPipelineWrap.dll)

構文

'宣言
Sub FireError ( _
    ErrorCode As Integer, _
    SubComponent As String, _
    Description As String, _
    HelpFile As String, _
    HelpContext As Integer, _
    <OutAttribute> ByRef pbCancel As Boolean _
)
'使用
Dim instance As IDTSComponentMetaData100 
Dim ErrorCode As Integer 
Dim SubComponent As String 
Dim Description As String 
Dim HelpFile As String 
Dim HelpContext As Integer 
Dim pbCancel As Boolean

instance.FireError(ErrorCode, SubComponent, _
    Description, HelpFile, HelpContext, _
    pbCancel)
void FireError(
    int ErrorCode,
    string SubComponent,
    string Description,
    string HelpFile,
    int HelpContext,
    out bool pbCancel
)
void FireError(
    [InAttribute] int ErrorCode, 
    [InAttribute] String^ SubComponent, 
    [InAttribute] String^ Description, 
    [InAttribute] String^ HelpFile, 
    [InAttribute] int HelpContext, 
    [OutAttribute] bool% pbCancel
)
abstract FireError : 
        ErrorCode:int * 
        SubComponent:string * 
        Description:string * 
        HelpFile:string * 
        HelpContext:int * 
        pbCancel:bool byref -> unit
function FireError(
    ErrorCode : int, 
    SubComponent : String, 
    Description : String, 
    HelpFile : String, 
    HelpContext : int, 
    pbCancel : boolean
)

パラメーター

  • ErrorCode
    型: System.Int32
    コンポーネント定義のエラー コードです。
  • SubComponent
    型: System.String
    イベントを発生させるコンポーネントの名前です。
  • HelpFile
    型: System.String
    エラー イベントに関する詳細な情報を提供するヘルプ ファイルです。
  • HelpContext
    型: System.Int32
    エラーのコンテキスト ID です。
  • pbCancel
    型: System.Boolean%
    コンポーネントの実行を取り消すかどうかを指定します。

説明

OnError イベントは、パッケージのデザイン時または実行時に発生します。 デザイン時には、エラーは [タスク一覧] ウィンドウに表示され、デザイナー画面のコンポーネント図形の横にも赤い X アイコンが表示されます。 実行時には、エラー イベントによってパッケージの実行が終了する場合があります。

関連項目

参照

IDTSComponentMetaData100 インターフェイス

Microsoft.SqlServer.Dts.Pipeline.Wrapper 名前空間