次の方法で共有


DefaultEvents.OnWarning Method

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

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

構文

'宣言
Public Overridable Sub OnWarning ( _
    source As DtsObject, _
    warningCode As Integer, _
    subComponent As String, _
    description As String, _
    helpFile As String, _
    helpContext As Integer, _
    idofInterfaceWithError As String _
)
public virtual void OnWarning (
    DtsObject source,
    int warningCode,
    string subComponent,
    string description,
    string helpFile,
    int helpContext,
    string idofInterfaceWithError
)
public:
virtual void OnWarning (
    DtsObject^ source, 
    int warningCode, 
    String^ subComponent, 
    String^ description, 
    String^ helpFile, 
    int helpContext, 
    String^ idofInterfaceWithError
)
public void OnWarning (
    DtsObject source, 
    int warningCode, 
    String subComponent, 
    String description, 
    String helpFile, 
    int helpContext, 
    String idofInterfaceWithError
)
public function OnWarning (
    source : DtsObject, 
    warningCode : int, 
    subComponent : String, 
    description : String, 
    helpFile : String, 
    helpContext : int, 
    idofInterfaceWithError : String
)

パラメータ

  • source
    イベントの原因になったオブジェクトです。
  • warningCode
    警告メッセージを識別する整数です。source パラメータと組み合わされる場合、sourcewarningCode の組み合わせが一意となるよう、この識別子は一意である必要があります。ただし、warningCode が単独で一意である必要はありません。
  • subComponent
    ソース内のサブモジュールを識別する任意の文字列です (パイプライン タスクの変換など)。
  • description
    メッセージのテキストです。
  • helpFile
    詳細な情報を含むヘルプ ファイルのパスです。
  • helpContext
    ヘルプ ファイルのトピックの識別子です。
  • idofInterfaceWithError
    エラーの原因となったインターフェイスの GUID のテキスト表現です。

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

DefaultEvents Class
DefaultEvents Members
Microsoft.SqlServer.Dts.Runtime Namespace