次の方法で共有


FireWarning メソッド

タスクがエラーとは認められないがクライアントに警告を送ることは保証する状態にある場合に、イベントを発生させます。

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

構文

'宣言
Sub FireWarning ( _
    warningCode As Integer, _
    subComponent As String, _
    description As String, _
    helpFile As String, _
    helpContext As Integer _
)
'使用
Dim instance As IDTSComponentEvents
Dim warningCode As Integer
Dim subComponent As String
Dim description As String
Dim helpFile As String
Dim helpContext As Integer

instance.FireWarning(warningCode, subComponent, _
    description, helpFile, helpContext)
void FireWarning(
    int warningCode,
    string subComponent,
    string description,
    string helpFile,
    int helpContext
)
void FireWarning(
    int warningCode, 
    String^ subComponent, 
    String^ description, 
    String^ helpFile, 
    int helpContext
)
abstract FireWarning : 
        warningCode:int * 
        subComponent:string * 
        description:string * 
        helpFile:string * 
        helpContext:int -> unit 
function FireWarning(
    warningCode : int, 
    subComponent : String, 
    description : String, 
    helpFile : String, 
    helpContext : int
)

パラメーター

  • subComponent
    型: System. . :: . .String
    イベント ソースについての詳細を含む String です。

説明

イベントの起動は負荷が高くなる場合があるため、起動する必要がないイベントを抑制するメカニズムがランタイム エンジンに用意されています。すべてのイベント起動メソッドには FireAgain パラメータがあります。この変数の値が false である場合、メソッドが値を返した後に、呼び出し元は現在の実行時間中にこのイベントを再度起動することがなくなります。

いくつかのイベントには subComponent パラメータがあります。このパラメータを使用すると、より詳細なイベント ソースを指定できます。