EventsObjectWrapper.FireError メソッド

この API は、SQL Server 2012 インフラストラクチャをサポートします。独自に作成したコードから直接使用するためのものではありません。

エラーが発生したときにイベントを発生させます。

名前空間:  Microsoft.SqlServer.Dts.Tasks.ScriptTask
アセンブリ:  Microsoft.SqlServer.ScriptTask (Microsoft.SqlServer.ScriptTask.dll)

構文

'宣言
Public Function FireError ( _
    errorCode As Integer, _
    subComponent As String, _
    description As String, _
    helpFile As String, _
    helpContext As Integer _
) As Boolean
'使用
Dim instance As EventsObjectWrapper 
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)
public bool FireError(
    int errorCode,
    string subComponent,
    string description,
    string helpFile,
    int helpContext
)
public:
bool FireError(
    int errorCode, 
    String^ subComponent, 
    String^ description, 
    String^ helpFile, 
    int helpContext
)
member FireError : 
        errorCode:int * 
        subComponent:string * 
        description:string * 
        helpFile:string * 
        helpContext:int -> bool
public function FireError(
    errorCode : int, 
    subComponent : String, 
    description : String, 
    helpFile : String, 
    helpContext : int
) : boolean

パラメーター

  • errorCode
    型: System.Int32
    エラー メッセージを識別します。
  • subComponent
    型: System.String
    イベント ソースについての詳細を格納します。
  • description
    型: System.String
    メッセージのテキストです。
  • helpFile
    型: System.String
    詳細な情報を含むヘルプ ファイルのパスです。
  • helpContext
    型: System.Int32
    ヘルプ ファイルのトピックの識別子です。

戻り値

型: System.Boolean
イベントを継続して発生させる必要がある場合は true、それ以外の場合は false です。

関連項目

参照

EventsObjectWrapper クラス

Microsoft.SqlServer.Dts.Tasks.ScriptTask 名前空間